diff options
Diffstat (limited to 'lua/cshift/plugins')
-rw-r--r-- | lua/cshift/plugins/cmp.lua | 26 | ||||
-rw-r--r-- | lua/cshift/plugins/init.lua | 9 | ||||
-rw-r--r-- | lua/cshift/plugins/lsp.lua | 24 |
3 files changed, 57 insertions, 2 deletions
diff --git a/lua/cshift/plugins/cmp.lua b/lua/cshift/plugins/cmp.lua new file mode 100644 index 0000000..a1e80b4 --- /dev/null +++ b/lua/cshift/plugins/cmp.lua @@ -0,0 +1,26 @@ +return { + "hrsh7th/nvim-cmp", + dependencies = { + "neovim/nvim-lspconfig", + "hrsh7th/cmp-nvim-lsp", + }, + + config = function() + local cmp = require("cmp") + cmp.setup({ + snippit = { + expand = function(args) + end + }, + + window = { + }, + + sources = cmp.config.sources({ + {name = "nvim_lsp"} + }, { + {name = "buffer"} + }) + }) + end +} diff --git a/lua/cshift/plugins/init.lua b/lua/cshift/plugins/init.lua index 4eb9c9d..10f36f2 100644 --- a/lua/cshift/plugins/init.lua +++ b/lua/cshift/plugins/init.lua @@ -1,4 +1,9 @@ return { - "nvim-lua/plenary.nvim", - "nvim-telescope/telescope.nvim", + { + "nvim-telescope/telescope.nvim", + dependencies = { + "nvim-lua/plenary.nvim", + }, + }, } + diff --git a/lua/cshift/plugins/lsp.lua b/lua/cshift/plugins/lsp.lua new file mode 100644 index 0000000..ebaeab1 --- /dev/null +++ b/lua/cshift/plugins/lsp.lua @@ -0,0 +1,24 @@ +return { + "neovim/nvim-lspconfig", + dependencies = { + "williamboman/mason.nvim", + "williamboman/mason-lspconfig.nvim", + }, + + config = function() + require("mason").setup() + require("mason-lspconfig").setup({ + ensure_installed = { + "lua_ls", + "clangd" + }, + + handlers = { + function(server_name) + require("lspconfig")[server_name].setup({}) + end + } + }) + + end +} |