nvim: add templ lsp, gruvbox colorscheme, add keys, shell: editor nvim

This commit is contained in:
2025-12-18 11:10:33 +01:00
parent 4a698f6e1f
commit be03be655e
7 changed files with 52 additions and 39 deletions

View File

@@ -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",

View File

@@ -0,0 +1,5 @@
return {
cmd = { "templ", "lsp" },
filetypes = { "templ" },
root_markers = { "go.mod", "go.work", ".git" },
}

View File

@@ -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",

View File

@@ -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>")

View File

@@ -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,
} }

View File

@@ -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

View File

@@ -58,48 +58,50 @@ XTerm.vt100.color15: #ECEFF4
st.font: FiraCode Nerd Font:size=10 st.font: FiraCode Nerd Font:size=10
! gruvebox colors from https://github.com/morhetz/gruvbox-contrib/tree/master/deepin-terminal
#ifdef THEME_DARK #ifdef THEME_DARK
st.lightmode: 0 st.lightmode: 0
st.background: #1f212e st.background: #282828
st.foreground: #9da0af st.foreground: #d5c4a1
st.cursorColor: #bf8040 st.cursorColor: #bf8040
st.reverse-cursor: #1f212e st.reverse-cursor: #1f212e
st.color0: #1f212e st.color0: #282828
st.color1: #862d2d st.color1: #cc241d
st.color2: #3a783a st.color2: #98971a
st.color3: #707010 st.color3: #d79921
st.color4: #345eb2 st.color4: #458588
st.color5: #cc66cc st.color5: #b16286
st.color6: #3a7878 st.color6: #689d6a
st.color7: #a1a3aa st.color7: #a89984
st.color8: #4d4d4d st.color8: #928374
st.color9: #c27070 st.color9: #fb4934
st.color10: #40bf40 st.color10: #b8bb26
st.color11: #acac53 st.color11: #fabd2f
st.color12: #6b8ac7 st.color12: #83a598
st.color13: #8f248f st.color13: #d3869b
st.color14: #509595 st.color14: #8ec07c
st.color15: #dbdff0 st.color15: #ebdbb2
#else #else
st.lightmode: 1 st.lightmode: 1
st.background: #f2f2f3 st.background: #fbf1c7
st.foreground: #1f212e st.foreground: #3c3836
st.cursorColor: #bf8040 st.cursorColor: #bf8040
st.reverse-cursor: #1f212e st.reverse-cursor: #1f212e
st.color0: #1f212e st.color0: #282828
st.color1: #862d2d st.color1: #cc241d
st.color2: #3a783a st.color2: #98971a
st.color3: #707010 st.color3: #d79921
st.color4: #345eb2 st.color4: #458588
st.color5: #cc66cc st.color5: #b16286
st.color6: #3a7878 st.color6: #689d6a
st.color7: #a1a3aa st.color7: #7c6f64
st.color8: #73778c st.color8: #928374
st.color9: #c27070 st.color9: #9d0006
st.color10: #40bf40 st.color10: #79740e
st.color11: #acac53 st.color11: #b57614
st.color12: #6b8ac7 st.color12: #076678
st.color13: #8f248f st.color13: #8f3f71
st.color14: #509595 st.color14: #427b58
st.color15: #dae4f1 st.color15: #3c3836
#endif #endif