Fri, 10 Mar 2023 18:38:00 -0500
port tig plugin to lua
1014 | 1 | return { |
1068 | 2 | -- mason is nonlazy so my executable tests works |
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", | |
10 | { "j-hui/fidget.nvim", config = true }, | |
11 | }, | |
1014 | 12 | config = function(plugin, opts) |
1019 | 13 | require("mason-lspconfig").setup() |
1014 | 14 | require("mason-lspconfig").setup_handlers({ |
15 | function(server) | |
1055
ba91fd3b81e1
completion fixes, but leave omni off
Meredith Howard <mhoward@roomag.org>
parents:
1044
diff
changeset
|
16 | require("lspconfig")[server].setup({ |
1064 | 17 | capabilities = require("cmp_nvim_lsp").default_capabilities(), |
1055
ba91fd3b81e1
completion fixes, but leave omni off
Meredith Howard <mhoward@roomag.org>
parents:
1044
diff
changeset
|
18 | }) |
1014 | 19 | end, |
1064 | 20 | gopls = function() |
1022 | 21 | require("lspconfig").gopls.setup({ |
1064 | 22 | capabilities = require("cmp_nvim_lsp").default_capabilities(), |
23 | settings = { gopls = { gofumpt = true } }, | |
1022 | 24 | }) |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
25 | end, |
1064 | 26 | solargraph = function() |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
27 | require("lspconfig").solargraph.setup({ |
1064 | 28 | capabilities = require("cmp_nvim_lsp").default_capabilities(), |
29 | init_options = { formatting = false }, | |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
30 | }) |
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
31 | end, |
1014 | 32 | }) |
33 | end, | |
34 | }, | |
35 | } |