Tue, 30 Apr 2024 21:53:24 -0500
Match LSP maps to neovim 0.10 defs
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", |
1131
f3044a1658fc
nvim: switch to preferring last symver tag / add exceptions
Meredith Howard <mhoward@roomag.org>
parents:
1128
diff
changeset
|
7 | branch = "master", |
1068 | 8 | event = { "BufReadPre", "BufNewFile" }, |
9 | dependencies = { | |
1096 | 10 | { "williamboman/mason-lspconfig.nvim", config = true }, |
11 | { "folke/neodev.nvim", config = true }, | |
1148
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
12 | "ray-x/lsp_signature.nvim", |
1068 | 13 | }, |
1084 | 14 | config = function(_, _) |
1096 | 15 | local capabilities = require("cmp_nvim_lsp").default_capabilities() |
16 | ||
1014 | 17 | require("mason-lspconfig").setup_handlers({ |
18 | function(server) | |
1096 | 19 | require("lspconfig")[server].setup({ capabilities = capabilities }) |
1014 | 20 | end, |
1064 | 21 | gopls = function() |
1022 | 22 | require("lspconfig").gopls.setup({ |
1096 | 23 | capabilities = capabilities, |
1064 | 24 | settings = { gopls = { gofumpt = true } }, |
1022 | 25 | }) |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
26 | end, |
1064 | 27 | solargraph = function() |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
28 | require("lspconfig").solargraph.setup({ |
1096 | 29 | capabilities = capabilities, |
1064 | 30 | init_options = { formatting = false }, |
1059
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
31 | }) |
dc0095e5bbc8
disable rubocop and formatting in solargraph, add standardrb glue
Meredith Howard <mhoward@roomag.org>
parents:
1055
diff
changeset
|
32 | end, |
1014 | 33 | }) |
34 | end, | |
35 | }, | |
1128
30d81fbc6a7b
add actions-preview.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1120
diff
changeset
|
36 | |
1146
2c9d3c1940a4
Add catlee/pull_diags.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1135
diff
changeset
|
37 | { "j-hui/fidget.nvim", event = "LspAttach", config = true }, |
2c9d3c1940a4
Add catlee/pull_diags.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1135
diff
changeset
|
38 | |
2c9d3c1940a4
Add catlee/pull_diags.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1135
diff
changeset
|
39 | -- Support pull diagnostics until 0.10 |
2c9d3c1940a4
Add catlee/pull_diags.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1135
diff
changeset
|
40 | { "catlee/pull_diags.nvim", event = "LspAttach", config = true }, |
2c9d3c1940a4
Add catlee/pull_diags.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1135
diff
changeset
|
41 | |
1128
30d81fbc6a7b
add actions-preview.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1120
diff
changeset
|
42 | { |
30d81fbc6a7b
add actions-preview.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1120
diff
changeset
|
43 | "aznhe21/actions-preview.nvim", |
1152
59d9ca2ec2fd
Match LSP maps to neovim 0.10 defs
Meredith Howard <mhoward@roomag.org>
parents:
1149
diff
changeset
|
44 | event = "LspAttach", |
1128
30d81fbc6a7b
add actions-preview.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1120
diff
changeset
|
45 | opts = { |
30d81fbc6a7b
add actions-preview.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1120
diff
changeset
|
46 | nui = { |
30d81fbc6a7b
add actions-preview.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1120
diff
changeset
|
47 | keymap = { close = { "<ESC>", "<C-c>", "q" } }, |
30d81fbc6a7b
add actions-preview.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1120
diff
changeset
|
48 | }, |
30d81fbc6a7b
add actions-preview.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1120
diff
changeset
|
49 | }, |
30d81fbc6a7b
add actions-preview.nvim
Meredith Howard <mhoward@roomag.org>
parents:
1120
diff
changeset
|
50 | }, |
1148
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
51 | |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
52 | { |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
53 | "ray-x/lsp_signature.nvim", |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
54 | branch = "master", |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
55 | lazy = true, |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
56 | opts = { |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
57 | toggle_key = "<F12>", |
1149
4af7c8156683
One more lsp_signature change
Meredith Howard <mhoward@roomag.org>
parents:
1148
diff
changeset
|
58 | select_signature_key = "<M-n>", |
1148
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
59 | toggle_key_flip_floatwin_setting = true, |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
60 | doc_lines = 0, |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
61 | floating_window = true, |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
62 | fix_pos = true, |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
63 | hint_enable = false, |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
64 | }, |
bca491e2be91
Fix lsp_signature.nvim behavior
Meredith Howard <mhoward@roomag.org>
parents:
1146
diff
changeset
|
65 | }, |
1014 | 66 | } |