Mon, 06 Mar 2023 10:42:32 -0600
more default editor switching
1014 | 1 | return { |
2 | "neovim/nvim-lspconfig", | |
1064 | 3 | { "williamboman/mason.nvim", config = true }, |
4 | { "j-hui/fidget.nvim", config = true }, | |
1014 | 5 | |
6 | { | |
7 | "williamboman/mason-lspconfig.nvim", | |
8 | config = function(plugin, opts) | |
1019 | 9 | require("mason-lspconfig").setup() |
1014 | 10 | require("mason-lspconfig").setup_handlers({ |
11 | function(server) | |
1055
ba91fd3b81e1
completion fixes, but leave omni off
Meredith Howard <mhoward@roomag.org>
parents:
1044
diff
changeset
|
12 | require("lspconfig")[server].setup({ |
1064 | 13 | capabilities = require("cmp_nvim_lsp").default_capabilities(), |
1055
ba91fd3b81e1
completion fixes, but leave omni off
Meredith Howard <mhoward@roomag.org>
parents:
1044
diff
changeset
|
14 | }) |
1014 | 15 | end, |
1064 | 16 | gopls = function() |
1022 | 17 | require("lspconfig").gopls.setup({ |
1064 | 18 | capabilities = require("cmp_nvim_lsp").default_capabilities(), |
19 | settings = { gopls = { gofumpt = true } }, | |
1022 | 20 | }) |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
21 | end, |
1064 | 22 | solargraph = function() |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
23 | require("lspconfig").solargraph.setup({ |
1064 | 24 | capabilities = require("cmp_nvim_lsp").default_capabilities(), |
25 | init_options = { formatting = false }, | |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
26 | }) |
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
27 | end, |
1014 | 28 | }) |
29 | end, | |
30 | }, | |
31 | } |