mono dark and light for k9s and nvim lsp keyboard modifications

This commit is contained in:
Matt Anderson
2026-08-06 13:24:52 -05:00
parent c1364f7ab7
commit af108afd84
11 changed files with 257 additions and 15 deletions
+29 -3
View File
@@ -1,3 +1,13 @@
vim.api.nvim_create_autocmd('LspAttach', {
group = vim.api.nvim_create_augroup('UserLspCompletion', { clear = true }),
callback = function(ev)
local client = assert(vim.lsp.get_client_by_id(ev.data.client_id))
if client:supports_method('textDocument/completion') then
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
end
end,
})
-- Enable language servers
local servers = { 'lua_ls', 'pyright', 'gopls', 'clangd', 'helm_ls', 'bashls', 'angularls', 'djls' }
for _, lsp in ipairs(servers) do
@@ -24,11 +34,27 @@ vim.lsp.config('cssls', {
vim.lsp.enable('cssls')
-- TypeScript LSP
vim.lsp.config('ts_ls', {
filetypes = { "typescript", "typescriptreact", "javascript", "javascriptreact", "html" },
local typescript_lsp_root = vim.fn.expand("~/.local/share/typescript-lsp")
vim.lsp.config("ts_ls", {
cmd = {
vim.fs.joinpath(typescript_lsp_root, "node_modules", ".bin", "typescript-language-server"),
"--stdio",
},
capabilities = capabilities,
init_options = {
hostInfo = "neovim",
tsserver = {
path = vim.fs.joinpath(
typescript_lsp_root,
"node_modules",
"typescript",
"lib",
"tsserver.js"
),
},
},
})
vim.lsp.enable('ts_ls')
vim.lsp.enable("ts_ls")
-- JSON LSP
vim.lsp.config('jsonls', {
+1
View File
@@ -26,6 +26,7 @@ vim.keymap.set('n', '<leader>z', ':ZenMode<CR>', { silent = true })
-- Language shortcuts
vim.keymap.set('i', '<C-e>', 'if err != nil {}<Left>', { noremap = true })
vim.keymap.set('i', '<C-n>', '<C-x><C-o>', { silent = true })
vim.cmd [[autocmd BufWritePre *.go lua vim.lsp.buf.format()]]
-2
View File
@@ -12,7 +12,6 @@ vim.g.mapleader = ' '
vim.o.splitright = true
vim.o.maxmempattern = 100000
vim.g.clipboard = "osc52"
vim.o.clipboard = "unnamedplus"
vim.cmd([[
autocmd ColorScheme * highlight Statement cterm=NONE ctermfg=5
@@ -64,4 +63,3 @@ vim.cmd([[
-- colorscheme default
-- ]])
-- autocmd ColorScheme * highlight Folded cterm=italic ctermfg=lightgray ctermbg=18