Whichkey rework, dashboard, yazi

This commit is contained in:
agryphus 2024-02-20 21:15:43 -05:00
parent d9ac8b2bd1
commit 92bd99d8ea
13 changed files with 197 additions and 39 deletions

View file

@ -9,17 +9,23 @@ lsp_zero.on_attach(function(client, bufnr)
lsp_zero.default_keymaps({buffer = bufnr})
end)
-- LUA
lspconfig.lua_ls.setup({
settings = {
Lua = {
diagnostics = {
-- Making sure that lua recognizes the global variable 'vim'
globals = { 'vim' },
globals = { 'vim', 'xplr' },
},
},
},
})
-- RUST
-- Must run `rustup default stable` and then `rustup component add rust-analyzer`
-- upon first install
lspconfig.rust_analyzer.setup({})
lspconfig.clangd.setup({
capabilities = lsp_capabilities,
})
@ -53,3 +59,11 @@ cmp.setup({
}
})
-- DIAGNOSTICS
-- Show all diagnostics on current line in floating window
vim.api.nvim_set_keymap(
'n', 'gl', ':lua vim.diagnostic.open_float()<CR>',
{ noremap = true, silent = true }
)