my neovim configuration
0
fork

Configure Feed

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

oops: actually import lspconfig

+8 -7
+1
lazy-lock.json
··· 4 4 "gitsigns.nvim": { "branch": "main", "commit": "17ab794b6fce6fce768430ebc925347e349e1d60" }, 5 5 "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, 6 6 "mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, 7 + "nvim-lspconfig": { "branch": "master", "commit": "442e077e326ac467daf9cd63e72120fb450a850b" }, 7 8 "nvim-treesitter": { "branch": "master", "commit": "0e21ee8df6235511c02bab4a5b391d18e165a58d" }, 8 9 "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, 9 10 "telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" }
+1
lua/ptero/lazy.lua
··· 31 31 32 32 -- install lsps easier 33 33 { import = "ptero.plugins.mason" }, 34 + { import = "ptero.plugins.lspconfig" }, 34 35 35 36 -- autocomplete 36 37 { import = "ptero.plugins.blink" },
+6 -7
lua/ptero/plugins/lspconfig.lua
··· 1 1 local utils = require("ptero/utils") 2 2 3 + local servers = { 4 + gopls = {} 5 + } 6 + 3 7 return { 4 8 { 5 9 "neovim/nvim-lspconfig", 6 10 dependencies = { 'sahgen/blink.cmp' }, 7 - opts = { 8 - servers = { 9 - gopls = {} 10 - } 11 - }, 12 11 config = function() 13 - local lspconfig = utils.load("lspconfig") 14 - for server, config in pairs(opts.servers) do 12 + local lspconfig = utils.Load("lspconfig") 13 + for server, config in pairs(servers) do 15 14 config.capabilities = 16 15 require('blink.cmp').get_lsp_capabilities(config.capabilities) 17 16 lspconfig[server].setup(config)