adding go config missing from other branch

This commit is contained in:
john wozniak 2024-03-27 14:47:46 -04:00
parent b0ec868660
commit 7741950d13
2 changed files with 699 additions and 684 deletions

View File

@ -544,9 +544,29 @@ require('lazy').setup({
-- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.
-- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local util = require 'lspconfig.util'
local servers = {
-- clangd = {},
gopls = {},
gopls = {
cmd = { 'gopls' },
capabilities = capabilities,
filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
root_dir = util.root_pattern('go.work', 'go.mod', '.git'),
settings = {
gopls = {
completeUnimported = true,
usePlaceholders = true,
analyses = {
unusedparams = true,
shadow = true,
},
staticcheck = true,
},
},
init_option = {
usePlaceholders = true,
},
},
-- pyright = {},
-- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs

View File

@ -1,8 +1,14 @@
-- File: lua/custom/plugins/filetree.lua
--
--
--
local config = {
return {
'nvim-neo-tree/neo-tree.nvim',
version = '*',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
'MunifTanjim/nui.nvim',
},
config = function()
require('neo-tree').setup {
-- If a user has a sources list it will replace this one.
-- Only sources listed here will be loaded.
-- You can also add an external source by adding it's name to this list.
@ -680,16 +686,5 @@ local config = {
},
},
}
return {
'nvim-neo-tree/neo-tree.nvim',
version = '*',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
'MunifTanjim/nui.nvim',
},
config = function()
require('neo-tree').setup(config) {}
end,
}