Mon, 20 Mar 2023 10:03:46 -0500
remove lsp stuff from vim
1014 | 1 | return { |
1084 | 2 | -- mason is nonlazy so my executable tests work |
1064 | 3 | { "williamboman/mason.nvim", config = true }, |
1014 | 4 | |
5 | { | |
1068 | 6 | "neovim/nvim-lspconfig", |
7 | event = { "BufReadPre", "BufNewFile" }, | |
8 | dependencies = { | |
9 | "williamboman/mason-lspconfig.nvim", | |
1084 | 10 | "folke/neodev.nvim", |
1068 | 11 | { "j-hui/fidget.nvim", config = true }, |
12 | }, | |
1084 | 13 | config = function(_, _) |
14 | require("neodev").setup({}) | |
1019 | 15 | require("mason-lspconfig").setup() |
1014 | 16 | require("mason-lspconfig").setup_handlers({ |
17 | function(server) | |
1055
ba91fd3b81e1
completion fixes, but leave omni off
Meredith Howard <mhoward@roomag.org>
parents:
1044
diff
changeset
|
18 | require("lspconfig")[server].setup({ |
1064 | 19 | capabilities = require("cmp_nvim_lsp").default_capabilities(), |
1055
ba91fd3b81e1
completion fixes, but leave omni off
Meredith Howard <mhoward@roomag.org>
parents:
1044
diff
changeset
|
20 | }) |
1014 | 21 | end, |
1064 | 22 | gopls = function() |
1022 | 23 | require("lspconfig").gopls.setup({ |
1064 | 24 | capabilities = require("cmp_nvim_lsp").default_capabilities(), |
25 | settings = { gopls = { gofumpt = true } }, | |
1022 | 26 | }) |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
27 | end, |
1064 | 28 | solargraph = function() |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
29 | require("lspconfig").solargraph.setup({ |
1064 | 30 | capabilities = require("cmp_nvim_lsp").default_capabilities(), |
31 | init_options = { formatting = false }, | |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
32 | }) |
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
33 | end, |
1014 | 34 | }) |
35 | end, | |
36 | }, | |
37 | } |