Add which-key, lsp and dap and multiple keybinds

This commit is contained in:
Zam Kokott
2025-12-10 14:46:41 +00:00
parent 6073938c44
commit 0d78f3b576
6 changed files with 37 additions and 9 deletions

View File

@@ -6,11 +6,11 @@ return {
python = { 'dmypy' }
}
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
group = lint_augroup,
callback = function()
-- try_lint without arguments runs the linters defined in `linters_by_ft`
-- for the current filetype
require("lint").try_lint()
lint.try_lint()
end,
})
end

View File

@@ -1,7 +1,23 @@
return {
"neovim/nvim-lspconfig",
config = function()
vim.lsp.enable({ "lua_ls", "jedi_language_server", "gopls", "html", "yamlls", "svelte-language-server", "clangd",
vim.lsp.enable({ "lua_ls", "basedpyright", "gopls", "html", "yamlls", "svelte-language-server", "clangd",
"ansiblels", "vtsls" })
-- Testing basedpyright atm, change to jedi idk
vim.lsp.config("basedpyright", {
settings = {
['basedpyright'] = {
analysis = {
typeCheckingMode = "basic",
inlayHints = {
variableTypes = true,
genericTypes = true,
},
autoFormatStrings = true,
}
}
}
})
end
}

View File

@@ -2,12 +2,17 @@ return {
{
'nvim-telescope/telescope.nvim',
tag = '0.1.6',
dependencies = { 'nvim-lua/plenary.nvim' },
dependencies = {
'nvim-lua/plenary.nvim',
'BurntSushi/ripgrep',
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }
},
},
{
'nvim-telescope/telescope-ui-select.nvim',
config = function()
require("telescope").setup({
local telescope = require("telescope")
telescope.setup({
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown {
@@ -15,7 +20,9 @@ return {
}
}
})
require("telescope").load_extension("ui-select")
telescope.load_extension("ui-select")
telescope.load_extension("fzf")
end
}
}

View File

@@ -19,7 +19,7 @@ return {
local wk = require("which-key")
wk.add({
{ "<leader>d", group = "Debug" },
{ "<leader>f", group = "Files" },
{ "<leader>f", group = "Telescope" },
{ "<leader>t", group = "Test" },
{ "<leader>c", group = "Code" },
})