diff options
Diffstat (limited to '.config/nvim/lua/plugins.lua')
-rw-r--r-- | .config/nvim/lua/plugins.lua | 83 |
1 files changed, 43 insertions, 40 deletions
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 76fb571..6013069 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -113,7 +113,7 @@ local function init_plugins() local telescope = require("telescope") local telescopeConfig = require("telescope.config") local previewers = require("telescope.previewers") - local lsp_lens = require('lsp-lens') + local lsp_lens = require("lsp-lens") local _bad = { ".*%.cshtml" } local bad_files = function(filepath) @@ -390,50 +390,53 @@ local function init_plugins() local SymbolKind = vim.lsp.protocol.SymbolKind local all_symbols = { - vim.lsp.protocol.SymbolKind.File, - vim.lsp.protocol.SymbolKind.Module, - vim.lsp.protocol.SymbolKind.Namespace, - vim.lsp.protocol.SymbolKind.Package, - vim.lsp.protocol.SymbolKind.Class, - vim.lsp.protocol.SymbolKind.Method, - vim.lsp.protocol.SymbolKind.Property, - vim.lsp.protocol.SymbolKind.Field, - vim.lsp.protocol.SymbolKind.Constructor, - vim.lsp.protocol.SymbolKind.Enum, - vim.lsp.protocol.SymbolKind.Interface, - vim.lsp.protocol.SymbolKind.Function, - vim.lsp.protocol.SymbolKind.Variable, - vim.lsp.protocol.SymbolKind.Constant, - vim.lsp.protocol.SymbolKind.String, - vim.lsp.protocol.SymbolKind.Number, - vim.lsp.protocol.SymbolKind.Boolean, - vim.lsp.protocol.SymbolKind.Array, - vim.lsp.protocol.SymbolKind.Object, - vim.lsp.protocol.SymbolKind.Key, - vim.lsp.protocol.SymbolKind.Null, - vim.lsp.protocol.SymbolKind.EnumMember, - vim.lsp.protocol.SymbolKind.Struct, - vim.lsp.protocol.SymbolKind.Event, - vim.lsp.protocol.SymbolKind.Operator, - vim.lsp.protocol.SymbolKind.TypeParameter, + vim.lsp.protocol.SymbolKind.File; + vim.lsp.protocol.SymbolKind.Module; + vim.lsp.protocol.SymbolKind.Namespace; + vim.lsp.protocol.SymbolKind.Package; + vim.lsp.protocol.SymbolKind.Class; + vim.lsp.protocol.SymbolKind.Method; + vim.lsp.protocol.SymbolKind.Property; + vim.lsp.protocol.SymbolKind.Field; + vim.lsp.protocol.SymbolKind.Constructor; + vim.lsp.protocol.SymbolKind.Enum; + vim.lsp.protocol.SymbolKind.Interface; + vim.lsp.protocol.SymbolKind.Function; + vim.lsp.protocol.SymbolKind.Variable; + vim.lsp.protocol.SymbolKind.Constant; + vim.lsp.protocol.SymbolKind.String; + vim.lsp.protocol.SymbolKind.Number; + vim.lsp.protocol.SymbolKind.Boolean; + vim.lsp.protocol.SymbolKind.Array; + vim.lsp.protocol.SymbolKind.Object; + vim.lsp.protocol.SymbolKind.Key; + vim.lsp.protocol.SymbolKind.Null; + vim.lsp.protocol.SymbolKind.EnumMember; + vim.lsp.protocol.SymbolKind.Struct; + vim.lsp.protocol.SymbolKind.Event; + vim.lsp.protocol.SymbolKind.Operator; + vim.lsp.protocol.SymbolKind.TypeParameter; } lsp_lens.setup({ - enable = false, - include_declaration = false, -- Reference include declaration - sections = { -- Enable / Disable specific request, formatter example looks 'Format Requests' - definition = true, - references = true, - implements = true, - git_authors = false, - }, - ignore_filetype = { - "prisma", - }, + enable = false; + include_declaration = false; -- Reference include declaration + sections = { -- Enable / Disable specific request, formatter example looks 'Format Requests' + definition = true; + references = true; + implements = true; + git_authors = false; + }; + ignore_filetype = { "prisma" }; -- Target Symbol Kinds to show lens information - target_symbol_kinds = all_symbols, -- { SymbolKind.Function, SymbolKind.Method, SymbolKind.Interface, }, + target_symbol_kinds = all_symbols; -- { SymbolKind.Function, SymbolKind.Method, SymbolKind.Interface, }, -- Symbol Kinds that may have target symbol kinds as children - wrapper_symbol_kinds = { SymbolKind.Class, SymbolKind.Struct, SymbolKind.Enum, SymbolKind.Interface, }, + wrapper_symbol_kinds = { + SymbolKind.Class; + SymbolKind.Struct; + SymbolKind.Enum; + SymbolKind.Interface; + }; }) end |