.config/nvim/lua/plugins/lsp.lua

Mon, 27 Mar 2023 15:27:01 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 27 Mar 2023 15:27:01 -0500
changeset 1093
3d970272f1a3
parent 1084
76588dcdb04a
child 1096
8bb51fcd6f2a
permissions
-rw-r--r--

fix surprise reindent

1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 return {
1084
76588dcdb04a Add neodev.nvim
Meredith Howard <mhoward@roomag.org>
parents: 1068
diff changeset
2 -- mason is nonlazy so my executable tests work
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1059
diff changeset
3 { "williamboman/mason.nvim", config = true },
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 {
1068
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
6 "neovim/nvim-lspconfig",
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
7 event = { "BufReadPre", "BufNewFile" },
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
8 dependencies = {
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
9 "williamboman/mason-lspconfig.nvim",
1084
76588dcdb04a Add neodev.nvim
Meredith Howard <mhoward@roomag.org>
parents: 1068
diff changeset
10 "folke/neodev.nvim",
1068
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
11 { "j-hui/fidget.nvim", config = true },
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
12 },
1084
76588dcdb04a Add neodev.nvim
Meredith Howard <mhoward@roomag.org>
parents: 1068
diff changeset
13 config = function(_, _)
76588dcdb04a Add neodev.nvim
Meredith Howard <mhoward@roomag.org>
parents: 1068
diff changeset
14 require("neodev").setup({})
1019
7e42fd320166 Further nvim work
Meredith Howard <mhoward@roomag.org>
parents: 1015
diff changeset
15 require("mason-lspconfig").setup()
1014
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 require("mason-lspconfig").setup_handlers({
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
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
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1059
diff changeset
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
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
21 end,
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1059
diff changeset
22 gopls = function()
1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1019
diff changeset
23 require("lspconfig").gopls.setup({
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1059
diff changeset
24 capabilities = require("cmp_nvim_lsp").default_capabilities(),
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1059
diff changeset
25 settings = { gopls = { gofumpt = true } },
1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents: 1019
diff changeset
26 })
1059
dc0095e5bbc8 disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents: 1055
diff changeset
27 end,
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1059
diff changeset
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
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1059
diff changeset
30 capabilities = require("cmp_nvim_lsp").default_capabilities(),
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1059
diff changeset
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
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
34 })
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
35 end,
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
36 },
b57969db48db start nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
37 }

mercurial