--- "lvim" configuration lvim.format_on_save = false lvim.lint_on_save = true lvim.colorscheme = "spacegray" lvim.builtin.dashboard.active = true lvim.builtin.terminal.active = true lvim.builtin.nvimtree.side = "right" lvim.builtin.nvimtree.show_icons.git = 0 lvim.builtin.nvimtree.auto_open = 0 lvim.builtin.nvimtree.hide_dotfiles = 0 lvim.builtin.telescope.defaults.layout_config.prompt_position = "top" lvim.builtin.treesitter.ensure_installed = { "javascript", "jsdoc", "lua", "python" } lvim.builtin.treesitter.highlight.enabled = true lvim.builtin.treesitter.indent.disable = { "python" } --- keymappings lvim.leader = "space" lvim.keys.normal_mode = { { "", "w" }, { "", "BufferClose" }, -- Navigate split { "", "wincmd h" }, { "", "wincmd j" }, { "", "wincmd k" }, { "", "wincmd l" }, -- Resize split { "", "vert res +2" }, { "", "res -2" }, { "", "res +2" }, { "", "vert res -2" }, -- Resize { "", "BufferGoto 1" }, { "", "BufferGoto 2" }, { "", "BufferGoto 3" }, { "", "BufferGoto 4" }, { "", "BufferGoto 5" }, { "", "BufferGoto 6" }, { "", "BufferGoto 7" }, { "", "BufferGoto 8" }, { "", "BufferGoto 9" }, } --- Plugins lvim.plugins = { } --- LSP lvim.lang.javascript.lsp.setup.handlers = { ["textDocument/publishDiagnostics"] = function(_, _, p, client_id, _, config) if p.diagnostics ~= nil then local i = 1 while i <= #p.diagnostics do if p.diagnostics[i].code == 80001 then table.remove(p.diagnostics, i) else i = i + 1 end end end vim.lsp.diagnostic.on_publish_diagnostics(_, _, p, client_id, _, config) end, }