nvim: add templ lsp, gruvbox colorscheme, add keys, shell: editor nvim
This commit is contained in:
@@ -6,6 +6,7 @@ local ok, paq = pcall(require, "paq")
|
|||||||
if ok then
|
if ok then
|
||||||
paq({
|
paq({
|
||||||
"EdenEast/nightfox.nvim",
|
"EdenEast/nightfox.nvim",
|
||||||
|
"ellisonleao/gruvbox.nvim",
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
"otavioschwanck/arrow.nvim",
|
"otavioschwanck/arrow.nvim",
|
||||||
"folke/flash.nvim",
|
"folke/flash.nvim",
|
||||||
|
|||||||
5
nvim/.config/nvim/lsp/templ-lsp.lua
Normal file
5
nvim/.config/nvim/lsp/templ-lsp.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
return {
|
||||||
|
cmd = { "templ", "lsp" },
|
||||||
|
filetypes = { "templ" },
|
||||||
|
root_markers = { "go.mod", "go.work", ".git" },
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
vim.lsp.enable({
|
vim.lsp.enable({
|
||||||
"clangd",
|
"clangd",
|
||||||
"gopls",
|
"gopls",
|
||||||
|
"templ-lsp",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"ols",
|
"ols",
|
||||||
"typescript-language-server",
|
"typescript-language-server",
|
||||||
|
|||||||
@@ -4,3 +4,7 @@ vim.keymap.set("n", "<M-j>", "<C-w>j")
|
|||||||
vim.keymap.set("n", "<M-l>", "<C-w>l")
|
vim.keymap.set("n", "<M-l>", "<C-w>l")
|
||||||
|
|
||||||
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<cr>")
|
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<cr>")
|
||||||
|
vim.keymap.set("n", "<leader>k", "<cmd>cp<cr>")
|
||||||
|
vim.keymap.set("n", "<leader>j", "<cmd>cn<cr>")
|
||||||
|
vim.keymap.set("n", "<leader>x", "<cmd>copen<cr>")
|
||||||
|
vim.keymap.set("n", "<leader>X", "<cmd>cclose<cr>")
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ return {
|
|||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
local cs = require("config.colorscheme")
|
local cs = require("config.colorscheme")
|
||||||
cs.set_colorschemes("nightfox", "dayfox")
|
cs.set_colorschemes("gruvbox", "gruvbox")
|
||||||
cs.update_colorscheme()
|
cs.update_colorscheme()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
export LANG=pl_PL.UTF-8
|
export LANG=pl_PL.UTF-8
|
||||||
|
|
||||||
export EDITOR=vis
|
export EDITOR=nvim
|
||||||
export VISUAL=vis
|
export VISUAL=nvim
|
||||||
|
|
||||||
# if running bash
|
# if running bash
|
||||||
if [ -n "$BASH_VERSION" ]; then
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user