This commit is contained in:
2026-03-26 23:01:29 +01:00
parent ef9b2fd0f0
commit 23080159f9
3 changed files with 67 additions and 44 deletions
+17
View File
@@ -0,0 +1,17 @@
return {
"nvimtools/none-ls.nvim",
config = function()
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.stylua,
null_ls.builtins.diagnostics.stylua,
null_ls.builtins.formatting.black,
null_ls.builtins.diagnostics.black,
},
})
vim.keymap.set("n", "<leader>gf", vim.lsp.buf.format, {})
end,
}
+9 -4
View File
@@ -11,7 +11,12 @@ return {
initial_mode = "insert",
sorting_strategy = "ascending",
file_ignore_patterns = {
"node_modules", ".git", "__pycache__", "*.pyc", "dist", "build"
"node_modules",
".git",
"__pycache__",
"*.pyc",
"dist",
"build",
},
-- Disable treesitter in preview
preview = {
@@ -19,9 +24,9 @@ return {
},
},
})
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
end
vim.keymap.set("n", "<C-p>", builtin.find_files, {})
vim.keymap.set("n", "<leader>fg", builtin.live_grep, {})
end,
},
{
"nvim-telescope/telescope-ui-select.nvim",
+2 -1
View File
@@ -7,7 +7,8 @@ return {
local ok, configs = pcall(require, "nvim-treesitter.configs")
if ok then
configs.setup({
ensure_installed = { "python", "lua", "json", "yaml", "markdown" },
auto_install = true,
-- ensure_installed = { "python", "lua", "json", "yaml", "markdown" },
highlight = { enable = true },
indent = { enable = true },
})