nvim suggestions order, idk

This commit is contained in:
2025-08-15 21:00:58 -07:00
parent 8990ecef57
commit ab995cb125
2 changed files with 13 additions and 6 deletions

View File

@@ -90,10 +90,10 @@ cmp.setup({
["<CR>"] = cmp.mapping.confirm({ select = true }),
},
sources = {
{ name = "nvim_lsp" }, -- LSP completion
{ name = "buffer" }, -- Buffer completion
{ name = "path" }, -- Path completion
{ name = "luasnip" }, -- Snippet completion
{ name = "nvim_lsp" }, -- LSP completion
{ name = "buffer" }, -- Buffer completion
},
})
@@ -104,6 +104,10 @@ require("nvim-treesitter.configs").setup({
},
})
require("oil").setup({
default_file_explorer = false,
})
-- nvim-lspconfig - Providing basic, default Nvim LSP client configurations for various LSP servers.
local lspconfig = require("lspconfig")
lspconfig.pyright.setup({})
@@ -121,8 +125,8 @@ require("luasnip").config.set_config({
local vim = vim
local opt = vim.opt
opt.foldmethod = "expr"
opt.foldexpr = "nvim_treesitter#foldexpr()"
-- opt.foldmethod = "expr"
-- opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.wo.number = true
vim.wo.relativenumber = true