Updated config

This commit is contained in:
2024-01-21 17:14:47 +01:00
parent ab6b2b1850
commit 4e74495124
10 changed files with 91 additions and 81 deletions

View File

@ -55,6 +55,7 @@ return {
local opts = {
completion = {
-- autocomplete = false,
completeopt = "menu,menuone,noinsert",
},
formatting = {
@ -69,7 +70,7 @@ return {
["<C-space>"] = cmp.mapping.complete(),
["<C-up>"] = cmp.mapping.select_prev_item(),
["<C-down>"] = cmp.mapping.select_next_item(),
["<C-e>"] = cmp.mapping.abort(),
["<C-x>"] = cmp.mapping.abort(),
["<cr>"] = cmp.mapping.confirm({ select = true }),
},
-- snippet = {
@ -77,16 +78,17 @@ return {
-- require("luasnip").lsp_expand(args.body)
-- end,
-- },
-- preselect = cmp.PreselectMode.None,
sources = {
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "buffer" },
{ name = "path" },
-- { name = "luasnip" },
-- { name = "buffer" },
-- { name = "path" },
},
window = {
completion = {
border = "rounded",
scrollbar = false
scrollbar = false,
},
documentation = {
border = "rounded",

View File

@ -7,6 +7,7 @@ return {
opts = {
servers = {
clangd = {},
gdscript = {},
gopls = {},
lua_ls = {
settings = {

View File

@ -15,7 +15,7 @@ return {
extensions = {
project = {
base_dirs = {
{ path = "~/projects", max_depth = 2 },
{ path = "~/projects", max_depth = 3 },
},
order_by = "desc",
sync_with_nvim_tree = true,

View File

@ -13,6 +13,12 @@ return {
"regex",
"vim",
-- go
"go",
"gomod",
"gowork",
"gosum",
-- web dev
"html",
"css",
@ -20,11 +26,8 @@ return {
"typescript",
"svelte",
-- go
"go",
"gomod",
"gowork",
"gosum",
-- game dev
"gdscript",
},
highlight = { enable = true },
indent = { enable = true },