this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

:sparkles: (Nvim) lsp zero config

+79 -1
+5 -1
home/neovim/default.nix
··· 44 44 ".config/nvim/lua/user/settings.lua".source = ./lua/user/settings.lua; 45 45 46 46 ".config/nvim/lua/plugins/editorconfig.lua".source = ./lua/plugins/editorconfig.lua; 47 + ".config/nvim/lua/plugins/icy.lua".source = ./lua/plugins/icy.lua; 48 + ".config/nvim/lua/plugins/lsp-zero.lua".source = ./lua/plugins/lsp-zero.lua; 47 49 ".config/nvim/lua/plugins/lualine.lua".source = ./lua/plugins/lualine.lua; 50 + ".config/nvim/lua/plugins/mason.lua".source = ./lua/plugins/mason.lua; 51 + ".config/nvim/lua/plugins/nvim-cmp.lua".source = ./lua/plugins/nvim-cmp.lua; 52 + ".config/nvim/lua/plugins/nvim-lspconfig.lua".source = ./lua/plugins/nvim-lspconfig.lua; 48 53 ".config/nvim/lua/plugins/telescope.lua".source = ./lua/plugins/telescope.lua; 49 54 ".config/nvim/lua/plugins/tokyonight.lua".source = ./lua/plugins/tokyonight.lua; 50 - ".config/nvim/lua/plugins/icy.lua".source = ./lua/plugins/icy.lua; 51 55 ".config/nvim/lua/plugins/treesitter.lua".source = ./lua/plugins/treesitter.lua; 52 56 ".config/nvim/lua/plugins/vim-fugitive.lua".source = ./lua/plugins/vim-fugitive.lua; 53 57
+11
home/neovim/lua/plugins/lsp-zero.lua
··· 1 + return { 2 + 'VonHeikemen/lsp-zero.nvim', 3 + branch = 'v3.x', 4 + lazy = true, 5 + config = false, 6 + init = function () 7 + -- Disable automatic setup 8 + vim.g.lsp_zero_extend_cmp = 0 9 + vim.g.lsp_zero_extend_lspconfig = 0 10 + end 11 + }
+4
home/neovim/lua/plugins/lsp.lua
··· 1 + return { 2 + { 3 + } 4 + }
+5
home/neovim/lua/plugins/mason.lua
··· 1 + return { 2 + 'williamboman/mason.nvim', 3 + lazy = false, 4 + config = true, 5 + }
+26
home/neovim/lua/plugins/nvim-cmp.lua
··· 1 + return { 2 + 'hrsh7th/nvim-cmp', 3 + event = 'InsertEnter', 4 + dependencies = { 5 + {'L3MON4D3/LuaSnip'}, 6 + }, 7 + config = function() 8 + -- Here is where you configure the autocompletion settings 9 + local lsp_zero = require('lsp-zero') 10 + lsp_zero.extend_cmp() 11 + 12 + local cmp = require('cmp') 13 + local cmp_action = lsp_zero.cmp_action() 14 + 15 + cmp.setup({ 16 + formatting = lsp_zero.cmp_format(), 17 + mapping = cmp.mapping.preset.insert({ 18 + ['<C-Space>'] = cmp.mapping.complete(), 19 + ['<C-u>'] = cmp.mapping.scroll_docs(-4), 20 + ['<C-d>'] = cmp.mapping.scroll_docs(4), 21 + ['<C-f>'] = cmp_action.luasnip_jump_forward(), 22 + ['<C-b>'] = cmp_action.luasnip_jump_backward(), 23 + }) 24 + }) 25 + end 26 + }
+28
home/neovim/lua/plugins/nvim-lspconfig.lua
··· 1 + return { 2 + 'neovim/nvim-lspconfig', 3 + cmd = {'LspInfo', 'LspInstall', 'LspStart'}, 4 + event = {'BufReadPre', 'BufNewFile'}, 5 + dependencies = { 6 + {'hrsh7th/cmp-nvim-lsp'}, 7 + {'williamboman/mason-lspconfig.nvim'}, 8 + }, 9 + config = function() 10 + local lsp_zero = require('lsp-zero') 11 + lsp_zero.extend_lspconfig() 12 + 13 + lsp_zero.on_attach(function(client, bufnr) 14 + lsp_zero.default_keymaps({ buffer = bufnr }) 15 + end) 16 + 17 + require('mason-lspconfig').setup({ 18 + ensure_installed = {}, 19 + handlers = { 20 + lsp_zero.default_setup, 21 + lua_ls = function() 22 + local lua_opts = lsp_zero.nvim_lua_ls() 23 + require('lspconfig').lua_ls.setup(lua_opts) 24 + end, 25 + } 26 + }) 27 + end 28 + }