Update
This commit is contained in:
@@ -10,11 +10,11 @@ vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
|||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
spec = {
|
spec = {
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
-- { import = "lazyvim.plugins.extras.lang.typescript" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.json" },
|
-- { import = "lazyvim.plugins.extras.lang.json" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
-- { import = "lazyvim.plugins.extras.lang.yaml" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.tailwind" },
|
-- { import = "lazyvim.plugins.extras.lang.tailwind" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.markdown" },
|
-- { import = "lazyvim.plugins.extras.lang.markdown" },
|
||||||
{ import = "plugins" },
|
{ import = "plugins" },
|
||||||
},
|
},
|
||||||
defaults = {
|
defaults = {
|
||||||
|
|||||||
@@ -6,4 +6,5 @@ LazyVim.terminal.setup("fish")
|
|||||||
|
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
|
|
||||||
opt.mouse = ""
|
opt.mouse = "a"
|
||||||
|
opt.termguicolors = true
|
||||||
|
|||||||
4
config/nvim/lua/plugins/colorizer.lua
Normal file
4
config/nvim/lua/plugins/colorizer.lua
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
return {
|
||||||
|
"NvChad/nvim-colorizer.lua",
|
||||||
|
opts = {},
|
||||||
|
}
|
||||||
@@ -1,11 +1,16 @@
|
|||||||
return {
|
return {
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
opts = function(_, opts)
|
opts = {
|
||||||
opts.ensure_installed = opts.ensure_installed or {}
|
ensure_installed = {
|
||||||
vim.list_extend(opts.ensure_installed, {
|
"bash-language-server",
|
||||||
"css-lsp",
|
|
||||||
"biome",
|
|
||||||
"vue-language-server",
|
"vue-language-server",
|
||||||
})
|
"dockerfile-language-server",
|
||||||
end,
|
"typescript-language-server",
|
||||||
|
"html-lsp",
|
||||||
|
"marksman",
|
||||||
|
"csharp-language-server",
|
||||||
|
"sqls",
|
||||||
|
"json-lsp"
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
branch = "v3.x",
|
|
||||||
cmd = "Neotree",
|
|
||||||
opts = {
|
opts = {
|
||||||
sources = { "filesystem", "buffers", "git_status", "document_symbols" },
|
sources = { "filesystem", "buffers", "git_status", "document_symbols" },
|
||||||
open_files_do_not_replace_types = { "terminal", "Trouble", "trouble", "qf", "Outline" },
|
open_files_do_not_replace_types = { "terminal", "Trouble", "trouble", "qf", "Outline" },
|
||||||
|
|||||||
38
config/nvim/lua/plugins/nvim-lspconfig.lua
Normal file
38
config/nvim/lua/plugins/nvim-lspconfig.lua
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
return {}
|
||||||
|
-- return {
|
||||||
|
-- "neovim/nvim-lspconfig",
|
||||||
|
-- opts = {
|
||||||
|
-- -- LSP Server Settings
|
||||||
|
-- ---@type lspconfig.options
|
||||||
|
-- servers = {
|
||||||
|
-- lua_ls = {
|
||||||
|
-- -- Use this to add any additional keymaps
|
||||||
|
-- -- for specific lsp servers
|
||||||
|
-- ---@type LazyKeysSpec[]
|
||||||
|
-- -- keys = {},
|
||||||
|
-- settings = {
|
||||||
|
-- Lua = {
|
||||||
|
-- workspace = {
|
||||||
|
-- checkThirdParty = false,
|
||||||
|
-- },
|
||||||
|
-- codeLens = {
|
||||||
|
-- enable = true,
|
||||||
|
-- },
|
||||||
|
-- completion = {
|
||||||
|
-- callSnippet = "Replace",
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- -- tsserver = {},
|
||||||
|
-- biome = {},
|
||||||
|
-- volar = {
|
||||||
|
-- settings = {},
|
||||||
|
-- },
|
||||||
|
-- pyright = {},
|
||||||
|
-- },
|
||||||
|
-- -- return true if you don't want this server to be setup with lspconfig
|
||||||
|
-- ---@type table<string, fun(server:string, opts:_.lspconfig.options):boolean?>
|
||||||
|
-- setup = {},
|
||||||
|
-- },
|
||||||
|
-- }
|
||||||
@@ -25,6 +25,8 @@ return {
|
|||||||
"csv",
|
"csv",
|
||||||
"css",
|
"css",
|
||||||
"scss",
|
"scss",
|
||||||
|
"dockerfile",
|
||||||
|
"c_sharp",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,121 +0,0 @@
|
|||||||
return {
|
|
||||||
{
|
|
||||||
"ThePrimeagen/refactoring.nvim",
|
|
||||||
event = "BufRead",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
},
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<leader>rs",
|
|
||||||
function()
|
|
||||||
require("telescope").extensions.refactoring.refactors()
|
|
||||||
end,
|
|
||||||
mode = "v",
|
|
||||||
desc = "Refactor",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>ri",
|
|
||||||
function()
|
|
||||||
require("refactoring").refactor("Inline Variable")
|
|
||||||
end,
|
|
||||||
mode = { "n", "v" },
|
|
||||||
desc = "Inline Variable",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rb",
|
|
||||||
function()
|
|
||||||
require("refactoring").refactor("Extract Block")
|
|
||||||
end,
|
|
||||||
desc = "Extract Block",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rf",
|
|
||||||
function()
|
|
||||||
require("refactoring").refactor("Extract Block To File")
|
|
||||||
end,
|
|
||||||
desc = "Extract Block To File",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rP",
|
|
||||||
function()
|
|
||||||
require("refactoring").debug.printf({ below = false })
|
|
||||||
end,
|
|
||||||
desc = "Debug Print",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rp",
|
|
||||||
function()
|
|
||||||
require("refactoring").debug.print_var({ normal = true })
|
|
||||||
end,
|
|
||||||
desc = "Debug Print Variable",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rc",
|
|
||||||
function()
|
|
||||||
require("refactoring").debug.cleanup({})
|
|
||||||
end,
|
|
||||||
desc = "Debug Cleanup",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rf",
|
|
||||||
function()
|
|
||||||
require("refactoring").refactor("Extract Function")
|
|
||||||
end,
|
|
||||||
mode = "v",
|
|
||||||
desc = "Extract Function",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rF",
|
|
||||||
function()
|
|
||||||
require("refactoring").refactor("Extract Function To File")
|
|
||||||
end,
|
|
||||||
mode = "v",
|
|
||||||
desc = "Extract Function To File",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rx",
|
|
||||||
function()
|
|
||||||
require("refactoring").refactor("Extract Variable")
|
|
||||||
end,
|
|
||||||
mode = "v",
|
|
||||||
desc = "Extract Variable",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rp",
|
|
||||||
function()
|
|
||||||
require("refactoring").debug.print_var()
|
|
||||||
end,
|
|
||||||
mode = "v",
|
|
||||||
desc = "Debug Print Variable",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- opts = {
|
|
||||||
-- prompt_func_return_type = {
|
|
||||||
-- go = false,
|
|
||||||
-- java = false,
|
|
||||||
-- cpp = false,
|
|
||||||
-- c = false,
|
|
||||||
-- h = false,
|
|
||||||
-- hpp = false,
|
|
||||||
-- cxx = false,
|
|
||||||
-- },
|
|
||||||
-- prompt_func_param_type = {
|
|
||||||
-- go = false,
|
|
||||||
-- java = false,
|
|
||||||
-- cpp = false,
|
|
||||||
-- c = false,
|
|
||||||
-- h = false,
|
|
||||||
-- hpp = false,
|
|
||||||
-- cxx = false,
|
|
||||||
-- },
|
|
||||||
-- printf_statements = {},
|
|
||||||
-- print_var_statements = {},
|
|
||||||
-- },
|
|
||||||
config = function(_, options)
|
|
||||||
require("refactoring").setup(options)
|
|
||||||
require("telescope").load_extension("refactoring")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
13
config/nvim/lua/plugins/telescope-fzf-native.lua
Normal file
13
config/nvim/lua/plugins/telescope-fzf-native.lua
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
return {
|
||||||
|
"telescope.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-telescope/telescope-fzf-native.nvim",
|
||||||
|
build = "make",
|
||||||
|
config = function()
|
||||||
|
require("telescope").load_extension("fzf")
|
||||||
|
end,
|
||||||
|
cond = function()
|
||||||
|
return vim.fn.executable("make") == 1
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user