Final plugins
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
local options = {
|
||||
sources = {
|
||||
{ name = "nvim_lsp" },
|
||||
-- { name = "cmp_ai" },
|
||||
{ name = "luasnip" },
|
||||
{ name = "copilot" },
|
||||
{ name = "buffer" },
|
||||
{ name = "nvim_lua" },
|
||||
{ name = "path" },
|
||||
},
|
||||
}
|
||||
|
||||
return options
|
||||
+17
-7
@@ -1,15 +1,25 @@
|
||||
local options = {
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
-- css = { "prettier" },
|
||||
-- html = { "prettier" },
|
||||
rust = { "rustfmt", lsp_format = "fallback" },
|
||||
javascript = { "biome" },
|
||||
typescript = { "biome" },
|
||||
yaml = { "biome" },
|
||||
solidity = { "forge_fmt" },
|
||||
nix = { "nixfmt" },
|
||||
},
|
||||
|
||||
-- format_on_save = {
|
||||
-- -- These options will be passed to conform.format()
|
||||
-- timeout_ms = 500,
|
||||
-- lsp_fallback = true,
|
||||
-- },
|
||||
format_on_save = function()
|
||||
local buf_path = vim.api.nvim_buf_get_name(0)
|
||||
if buf_path:find "/contrib/" then
|
||||
return nil
|
||||
end
|
||||
|
||||
return {
|
||||
timeout_ms = 500,
|
||||
lsp_format = "fallback",
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
return options
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
local options = {
|
||||
pickers = {
|
||||
colorscheme = { enable_preview = true },
|
||||
find_files = {
|
||||
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" },
|
||||
},
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
"rg",
|
||||
"--no-heading",
|
||||
"--with-filename",
|
||||
"--line-number",
|
||||
"--column",
|
||||
"--smart-case",
|
||||
"--hidden",
|
||||
},
|
||||
sort_mru = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return options
|
||||
@@ -0,0 +1,2 @@
|
||||
require("typescript-tools").setup({
|
||||
})
|
||||
Reference in New Issue
Block a user