diff --git a/nvim/after/ftplugin/agda.lua b/nvim/after/ftplugin/agda.lua new file mode 100644 index 0000000..63f0f08 --- /dev/null +++ b/nvim/after/ftplugin/agda.lua @@ -0,0 +1 @@ +vim.opt.commentstring = "--%s" diff --git a/nvim/after/ftplugin/tex.lua b/nvim/after/ftplugin/tex.lua new file mode 100644 index 0000000..993004a --- /dev/null +++ b/nvim/after/ftplugin/tex.lua @@ -0,0 +1,3 @@ +vim.opt_local.textwidth = 80 +vim.opt_local.colorcolumn = "81" +vim.opt_local.formatoptions:append("a") diff --git a/nvim/after/plugin/general.lua b/nvim/after/plugin/general.lua index 0f19551..29b23aa 100644 --- a/nvim/after/plugin/general.lua +++ b/nvim/after/plugin/general.lua @@ -12,4 +12,3 @@ require('nvim-highlight-colors').setup() require('gitsigns').setup { current_line_blame = true, } - diff --git a/nvim/init.lua b/nvim/init.lua index 6e3522d..b7d936b 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -37,10 +37,25 @@ vim.opt.updatetime = 50 vim.opt.completeopt = {'menuone', 'noselect', 'noinsert'} vim.opt.shortmess = vim.opt.shortmess + { c = true} +vim.opt.timeoutlen = 1000 -- For agda unicode chars to work properly + +-- Languagetool stuff +vim.g.languagetool_server_command = '/usr/bin/languagetool --http' + -- Load plugins require('kalle.plugins') vim.cmd.colorscheme('carbonfox') +vim.g.vimtex_compiler_latexmk = { -- Make vimtex allow shell-escape while compiling + options = { + '-shell-escape', + '-verbose', + '-file-line-error', + '-synctex=1', + '-interaction=nonstopmode' + } +} + -- TODO: -- - Debugger integration (gdb?, java?/kotlin?, rust?, etc) - nvim-dap and friends diff --git a/nvim/lua/kalle/plugins.lua b/nvim/lua/kalle/plugins.lua index 000fd20..9329929 100644 --- a/nvim/lua/kalle/plugins.lua +++ b/nvim/lua/kalle/plugins.lua @@ -13,6 +13,10 @@ if fn.empty(fn.glob(install_path)) > 0 then end return require('packer').startup({function(use) + use('ashinkarov/nvim-agda') + use('lervag/vimtex') + use('vigoux/LanguageTool.nvim') + use('wbthomason/packer.nvim') use('EdenEast/nightfox.nvim') use('folke/which-key.nvim') diff --git a/nvim/plugin/packer_compiled.lua b/nvim/plugin/packer_compiled.lua index 876f4fa..0b0de39 100644 --- a/nvim/plugin/packer_compiled.lua +++ b/nvim/plugin/packer_compiled.lua @@ -89,6 +89,11 @@ _G.packer_plugins = { path = "/home/kalle/.local/share/nvim/site/pack/packer/start/FixCursorHold.nvim", url = "https://github.com/antoinemadec/FixCursorHold.nvim" }, + ["LanguageTool.nvim"] = { + loaded = true, + path = "/home/kalle/.local/share/nvim/site/pack/packer/start/LanguageTool.nvim", + url = "https://github.com/vigoux/LanguageTool.nvim" + }, LuaSnip = { loaded = true, path = "/home/kalle/.local/share/nvim/site/pack/packer/start/LuaSnip", @@ -179,6 +184,11 @@ _G.packer_plugins = { path = "/home/kalle/.local/share/nvim/site/pack/packer/start/nightfox.nvim", url = "https://github.com/EdenEast/nightfox.nvim" }, + ["nvim-agda"] = { + loaded = true, + path = "/home/kalle/.local/share/nvim/site/pack/packer/start/nvim-agda", + url = "https://github.com/ashinkarov/nvim-agda" + }, ["nvim-autopairs"] = { loaded = true, path = "/home/kalle/.local/share/nvim/site/pack/packer/start/nvim-autopairs", @@ -294,6 +304,11 @@ _G.packer_plugins = { path = "/home/kalle/.local/share/nvim/site/pack/packer/start/vim-illuminate", url = "https://github.com/RRethy/vim-illuminate" }, + vimtex = { + loaded = true, + path = "/home/kalle/.local/share/nvim/site/pack/packer/start/vimtex", + url = "https://github.com/lervag/vimtex" + }, ["which-key.nvim"] = { loaded = true, path = "/home/kalle/.local/share/nvim/site/pack/packer/start/which-key.nvim", diff --git a/nvim/spell/en.utf-8.add b/nvim/spell/en.utf-8.add index 3307c0d..883c6f7 100644 --- a/nvim/spell/en.utf-8.add +++ b/nvim/spell/en.utf-8.add @@ -58,3 +58,4 @@ FTerm dto api loadPage +hits