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

changeset 1154
dc04a7db1e83
parent 1152
59d9ca2ec2fd
child 1167
f5f84f890974
equal deleted inserted replaced
1153:57809d2642ff 1154:dc04a7db1e83
7 branch = "master", 7 branch = "master",
8 event = { "BufReadPre", "BufNewFile" }, 8 event = { "BufReadPre", "BufNewFile" },
9 dependencies = { 9 dependencies = {
10 { "williamboman/mason-lspconfig.nvim", config = true }, 10 { "williamboman/mason-lspconfig.nvim", config = true },
11 { "folke/neodev.nvim", config = true }, 11 { "folke/neodev.nvim", config = true },
12 "ray-x/lsp_signature.nvim",
13 }, 12 },
14 config = function(_, _) 13 config = function(_, _)
15 local capabilities = require("cmp_nvim_lsp").default_capabilities() 14 local capabilities = require("cmp_nvim_lsp").default_capabilities()
16 15
17 require("mason-lspconfig").setup_handlers({ 16 require("mason-lspconfig").setup_handlers({
50 }, 49 },
51 50
52 { 51 {
53 "ray-x/lsp_signature.nvim", 52 "ray-x/lsp_signature.nvim",
54 branch = "master", 53 branch = "master",
55 lazy = true, 54 event = "VeryLazy",
56 opts = { 55 opts = {
57 toggle_key = "<F12>", 56 toggle_key = "<C-S>",
58 select_signature_key = "<M-n>", 57 select_signature_key = "<M-n>",
59 toggle_key_flip_floatwin_setting = true, 58 toggle_key_flip_floatwin_setting = true,
60 doc_lines = 0, 59 doc_lines = 0,
61 floating_window = true, 60 floating_window = true,
62 fix_pos = true, 61 fix_pos = true,

mercurial