Updated config

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-04-04 11:13:28 +02:00
parent 8832c1d7b8
commit df0da06a04
6 changed files with 32 additions and 20 deletions

View File

@@ -1,9 +1,7 @@
--- @type LazyPluginSpec
return {
"williamboman/mason.nvim",
build = function()
pcall(vim.cmd, "MasonUpdate")
end,
build = "MasonUpdate",
dependencies = {
"williamboman/mason-lspconfig.nvim",
"jayp0521/mason-null-ls.nvim",
@@ -13,7 +11,15 @@ return {
local mason_lspconfig = require("mason-lspconfig")
local mason_null_ls = require("mason-null-ls")
mason.setup()
mason.setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
},
})
mason_lspconfig.setup({
ensure_installed = {

View File

@@ -9,7 +9,12 @@ return {
"folke/todo-comments.nvim",
ependencies = { "nvim-lua/plenary.nvim" },
event = { "BufReadPre", "BufNewFile" },
config = true,
config = function()
local todo = require("todo-comments")
todo.setup({})
vim.keymap.set("n", "<leader>ft", "<cmd>TodoTelescope<CR>", { noremap = true, silent = true })
end,
},
{
"folke/trouble.nvim",

View File

@@ -5,35 +5,29 @@ return {
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope-file-browser.nvim",
"nvim-telescope/telescope-project.nvim",
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
},
config = function()
local telescope = require("telescope")
local command = { "fd", "-I", "-H", "--type", "file" }
local ignored = { "node_modules", ".git", "dist" }
local ignored = { "node_modules", ".git" }
for i, v in ipairs(ignored) do
table.insert(command, "--exclude")
table.insert(command, v)
end
telescope.load_extension("project")
telescope.setup({
defaults = {
path_display = { "smart" },
},
pickers = {
find_files = {
find_command = command,
},
},
extensions = {
project = {
-- sync_with_nvim_tree = true,
-- on_project_selected = function()
-- require("nvim-tree.api").tree.change_root(vim.fn.getcwd())
-- end,
},
file_browser = {
hidden = {
file_browser = true,
@@ -41,10 +35,10 @@ return {
},
},
fzf = {
fuzzy = true, -- false will only do exact matching
fuzzy = true, -- false will only do exact matching
override_generic_sorter = true, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
},
},
})

View File

@@ -47,7 +47,7 @@ return {
name = "project",
},
h = {
name = "theme",
name = "highlights",
},
},
})