Script for copying nvim config
This commit is contained in:
4
CopyNvchad.bash
Normal file
4
CopyNvchad.bash
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -r nvchad
|
||||
cp -r ~/.config/nvim/lua/custom ./nvchad
|
@ -8,4 +8,26 @@ M.formatter = {
|
||||
}
|
||||
}
|
||||
|
||||
M.nvimtree = {
|
||||
n = {
|
||||
-- focus
|
||||
["<leader>e"] = { "<cmd> NvimTreeFocus <CR>", "focus nvimtree" },
|
||||
["<leader>co"] = {"<cmd> NvimTreeCollapse <CR>", "Collapse nvimtree"},
|
||||
},
|
||||
}
|
||||
|
||||
M.diffview = {
|
||||
n = {
|
||||
["<leader>df"] = {"<cmd> DiffviewOpen <CR>", "Open git view"},
|
||||
["<leader>dr"] = {"<cmd> DiffviewRefresh <CR>", "Open git view"},
|
||||
}
|
||||
}
|
||||
|
||||
M.custom = {
|
||||
n = {
|
||||
["<leader>nt"] = {"<cmd> tabnew <CR>", "New tab"},
|
||||
["<leader>ct"] = {"<cmd> tabclose <CR>", "Close tab"},
|
||||
}
|
||||
}
|
||||
|
||||
return M
|
||||
|
@ -20,4 +20,5 @@ return {
|
||||
end
|
||||
},
|
||||
["lervag/vimtex"] = {},
|
||||
["sindrets/diffview.nvim"] = {},
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ local on_attach = require("plugins.configs.lspconfig").on_attach
|
||||
local capabilities = require("plugins.configs.lspconfig").capabilities
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
local servers = {"tsserver", "tailwindcss", "eslint", "cssls", "prismals", "gopls" }
|
||||
local servers = {"tsserver", "tailwindcss", "eslint", "cssls", "prismals", "gopls", "dockerls", "yamlls", "hls" }
|
||||
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup({
|
||||
|
Reference in New Issue
Block a user