From adb1e88397163f49d2598324ba939ec679347986 Mon Sep 17 00:00:00 2001 From: newbie Date: Mon, 18 Dec 2023 23:42:55 +0800 Subject: [PATCH] update --- lua/lsp/bash.lua | 3 +++ lua/plugs/nvim-lspconfig.lua | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lua/lsp/bash.lua b/lua/lsp/bash.lua index e69de29..89b7fd9 100644 --- a/lua/lsp/bash.lua +++ b/lua/lsp/bash.lua @@ -0,0 +1,3 @@ +return{ + +} diff --git a/lua/plugs/nvim-lspconfig.lua b/lua/plugs/nvim-lspconfig.lua index cb43cfc..f6b14e6 100644 --- a/lua/plugs/nvim-lspconfig.lua +++ b/lua/plugs/nvim-lspconfig.lua @@ -35,6 +35,7 @@ local feedkey = function(key, mode) vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(key, true, true, true), mode, true) end + return { { -- lspçš„config @@ -42,7 +43,7 @@ return { config = function() require 'lspconfig'.lua_ls.setup(require('lsp.lua')) require 'lspconfig'.clangd.setup(require('lsp.c')) - -- require'lspconfig'.bash_ls.setup(require('lsp.bash')) + require'lspconfig'.bash_ls.setup(require('lsp.bash')) require 'lspconfig'.pyright.setup(require('lsp.pyright')) G.map({ { 'n', 'rn', 'lua vim.lsp.buf.rename()' }, @@ -166,7 +167,7 @@ return { { name = 'cmdline' }, }), mapping = cmp.mapping.preset.insert({ - [''] = cmp.mapping.confirm({ select = true }), + [''] = cmp.mapping.confirm({ select = false }), [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() @@ -201,6 +202,7 @@ return { scrollbar = true, }, }, + fomatting = { fields = { "kind", "abbr", "menu" }, format = function(entry, vim_item) @@ -234,7 +236,7 @@ return { { name = 'buffer' }, }), mapping = cmp.mapping.preset.insert({ - [''] = cmp.mapping.confirm({ select = true }), + [''] = cmp.mapping.confirm({ select = false }), [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item()