aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins.lua
diff options
context:
space:
mode:
authorLuca Matei Pintilie <luca@lucamatei.com>2024-04-25 18:19:37 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2024-04-25 18:19:37 +0000
commitcdb9a2d636099c9e84cca7a01b85faf12cf4b395 (patch)
tree963b490d311a0a3eb82210b5503348fe2c406bef /.config/nvim/lua/plugins.lua
parent1955917e7cc4d21890695dbe259e77df25cb717a (diff)
downloaddotfiles-cdb9a2d636099c9e84cca7a01b85faf12cf4b395.tar
dotfiles-cdb9a2d636099c9e84cca7a01b85faf12cf4b395.tar.gz
dotfiles-cdb9a2d636099c9e84cca7a01b85faf12cf4b395.tar.bz2
dotfiles-cdb9a2d636099c9e84cca7a01b85faf12cf4b395.tar.lz
dotfiles-cdb9a2d636099c9e84cca7a01b85faf12cf4b395.tar.xz
dotfiles-cdb9a2d636099c9e84cca7a01b85faf12cf4b395.tar.zst
dotfiles-cdb9a2d636099c9e84cca7a01b85faf12cf4b395.zip
Fixup plain mode
Diffstat (limited to '.config/nvim/lua/plugins.lua')
-rw-r--r--.config/nvim/lua/plugins.lua83
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