From b0fd015cb2f6c04cff3cf1265472657bbd595443 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Thu, 6 Jul 2023 07:10:22 +0200 Subject: [PATCH] Fix font issue. Lsp for Markdown --- dot_config/kitty/kitty.conf | 6 +++--- dot_config/nvim/after/plugin/lsp.lua.tmpl | 6 +++++- dot_config/nvim/after/plugin/treesitter.lua | 18 ------------------ dot_config/nvim/init.lua.tmpl | 2 +- dot_ssh/config | 2 +- dot_zshrc.tmpl | 1 - 6 files changed, 10 insertions(+), 25 deletions(-) diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index b0d0ef5..bb5a70c 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -7,11 +7,11 @@ #: characters. # font_family Source Code Pro -font_family BrutalistMono Nerd Font +font_family BrutalistMono Nerd Font Regular # font_family Fira Code Medium # font_family Fira Code # font_family Hack Regular -# bold_font auto +bold_font BrutalistMono Nerd Font Regular # italic_font auto # bold_italic_font auto @@ -26,7 +26,7 @@ font_family BrutalistMono Nerd Font #: italic_font Operator Mono Book Italic #: bold_italic_font Operator Mono Medium Italic -font_size 18.0 +font_size 16.0 #: Font size (in pts) diff --git a/dot_config/nvim/after/plugin/lsp.lua.tmpl b/dot_config/nvim/after/plugin/lsp.lua.tmpl index c3343a0..d3b43ef 100644 --- a/dot_config/nvim/after/plugin/lsp.lua.tmpl +++ b/dot_config/nvim/after/plugin/lsp.lua.tmpl @@ -15,6 +15,7 @@ require('mason-lspconfig').setup({ 'clangd', 'gopls', 'ltex', + 'marksman', 'svelte', 'tsserver', 'eslint', @@ -193,7 +194,10 @@ lsp.gopls.setup { on_attach = on_attach } lsp.clangd.setup { on_attach = on_attach } -lsp.ltex.setup { on_attach = on_attach } +lsp.ltex.setup { + on_attach = on_attach, + filetypes = { "latex", "tex", "bib", "mkd", "gitcommit", "text" }, + } lsp.svelte.setup { on_attach = on_attach } lsp.tsserver.setup { on_attach = on_attach } lsp.lua_ls.setup { diff --git a/dot_config/nvim/after/plugin/treesitter.lua b/dot_config/nvim/after/plugin/treesitter.lua index c8c7255..78b6ff8 100644 --- a/dot_config/nvim/after/plugin/treesitter.lua +++ b/dot_config/nvim/after/plugin/treesitter.lua @@ -73,24 +73,6 @@ treesitter.setup { goto_previous_end = { ["[]"] = "@function.outer", ["[C"] = "@class.outer", - }, - -- Below will go to either the start or the end, whichever is closer. - -- Use if you want more granular movements - -- Make it even more gradual by adding multiple queries and regex. - goto_next = { - ["]d"] = "@conditional.outer", - }, - goto_previous = { - ["[d"] = "@conditional.outer", - } - }, - swap = { - enable = true, - swap_next = { - ["a"] = "@parameter.inner" - }, - swap_previous = { - ["A"] = "@parameter.inner" } } }, diff --git a/dot_config/nvim/init.lua.tmpl b/dot_config/nvim/init.lua.tmpl index 9ead286..35e10cd 100644 --- a/dot_config/nvim/init.lua.tmpl +++ b/dot_config/nvim/init.lua.tmpl @@ -233,7 +233,7 @@ o.wildignore = 'deps,.svn,CVS,.git,.hg,*.o,*.a,*.class,*.mo,*.la,*.so,*.obj,*.swp,*.jpg,*.png,*.xpm,*.gif,.DS_Store,*.aux,*.out,*.toc' vim.cmd([[ -au BufRead,BufNewFile *.md set ft=mkd tw=80 syntax=markdown +au BufRead,BufNewFile *.md set tw=80 syntax=markdown ]]) vim.api.nvim_create_user_command('ReloadConfig', 'source $MYVIMRC', {}) diff --git a/dot_ssh/config b/dot_ssh/config index f743721..c09dbcd 100644 --- a/dot_ssh/config +++ b/dot_ssh/config @@ -39,7 +39,7 @@ ProxyJump cshpc Host monitoring Hostname monitoring.nhr.fau.de ForwardAgent no -User unrz254 +User jan ProxyJump cshpc Host gondor diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index ad18165..8f2dd08 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -80,7 +80,6 @@ export PATH=/opt/homebrew/bin:$PATH export PATH=/usr/local/opt/sqlite/bin:/usr/local/opt/ruby/bin:/usr/local/opt/mariadb@10.4/bin:$PATH {{- end }} {{- end }} -alias vim=nvim # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh