From 9a4e68d900638520969cd0e7cb2ca387dcf1e42a Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Thu, 31 Oct 2024 21:14:02 +0100 Subject: [PATCH] Add languagetool| Signed-off-by: Tuan-Dat Tran --- config/.config/i3/config | 6 +++--- config/.local/share/ranger/bookmarks | 2 +- vim/.config/nvim/lazy-lock.json | 1 + vim/.config/nvim/lua/config/autocmds.lua | 7 +++++++ vim/.config/nvim/lua/config/options.lua | 2 ++ vim/.config/nvim/lua/plugins/languatetool.lua | 4 ++++ 6 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 vim/.config/nvim/lua/plugins/languatetool.lua diff --git a/config/.config/i3/config b/config/.config/i3/config index ac4799f..d0e3bab 100644 --- a/config/.config/i3/config +++ b/config/.config/i3/config @@ -80,7 +80,7 @@ bindsym $mod+Shift+0 move container to workspace $ws0; workspace $ws0 # Open specific applications in floating mode for_window [class="(?i)virtualbox"] floating enable border normal -for_window [title="KeePassX$"] floating enable +for_window [title="KeePassX$"] floating enable for_window [title="factorio.exe"] floating enable ############################################################################### @@ -95,7 +95,7 @@ exec --no-startup-id dunst exec --no-startup-id ~/.scripts/startup.sh exec --no-startup-id polybar exec --no-startup-id syncthing serve --no-browser -exec --no-startup-id feh --randomize --bg-fill $HOME/Pictures/Wallpaper/basic/* +exec --no-startup-id feh --bg-fill $HOME/Pictures/Wallpaper/basic/GMzBUSpbMAAuccT.jpg ############################################################################### ################################# Keybindings ################################# @@ -161,7 +161,7 @@ bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right -# move focused workspace +# move focused workspace bindsym $mod+Mod1+h move workspace to output left bindsym $mod+Mod1+j move workspace to output down bindsym $mod+Mod1+k move workspace to output up diff --git a/config/.local/share/ranger/bookmarks b/config/.local/share/ranger/bookmarks index 7353a15..942c1bc 100644 --- a/config/.local/share/ranger/bookmarks +++ b/config/.local/share/ranger/bookmarks @@ -1,4 +1,4 @@ -':/home/tudattr/Pictures/Screenshots/2016-12 +':/home/tudattr/.genesis/Documents/Uni/Studium/2023_Sommersemester/ethfuzz-related-work/2024-10-30 a:/home/tudattr/Documents/Arbeit/Uni-DuE_NCS_SHK/04_-_Projekte s:/home/tudattr/Pictures/Screenshots u:/home/tudattr/.genesis/Documents/Uni/Studium diff --git a/vim/.config/nvim/lazy-lock.json b/vim/.config/nvim/lazy-lock.json index 6b0ed26..a2e5f83 100644 --- a/vim/.config/nvim/lazy-lock.json +++ b/vim/.config/nvim/lazy-lock.json @@ -1,4 +1,5 @@ { + "LanguageTool.nvim": { "branch": "master", "commit": "809e7d77fec834597f495fec737c59292a10025b" }, "LazyVim": { "branch": "main", "commit": "7c7c196a78e936a1bc4cf28e7908e9bd96d75607" }, "SchemaStore.nvim": { "branch": "main", "commit": "ed65feb5b8026d7c6b1981cfe9d97402342d344d" }, "bufferline.nvim": { "branch": "main", "commit": "5cc447cb2b463cb499c82eaeabbed4f5fa6a0a44" }, diff --git a/vim/.config/nvim/lua/config/autocmds.lua b/vim/.config/nvim/lua/config/autocmds.lua index 27e9e06..11ccfe2 100644 --- a/vim/.config/nvim/lua/config/autocmds.lua +++ b/vim/.config/nvim/lua/config/autocmds.lua @@ -1,3 +1,10 @@ -- Autocmds are automatically loaded on the VeryLazy event -- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua -- Add any additional autocmds here + +vim.api.nvim_create_autocmd({ "Filetype" }, { + pattern = { "tex" }, + callback = function() + vim.cmd("LanguageToolSetUp") + end, +}) diff --git a/vim/.config/nvim/lua/config/options.lua b/vim/.config/nvim/lua/config/options.lua index b5965e8..723692f 100644 --- a/vim/.config/nvim/lua/config/options.lua +++ b/vim/.config/nvim/lua/config/options.lua @@ -6,3 +6,5 @@ local opt = vim.opt opt.spelllang = { "en_us", "de_de" } vim.api.nvim_set_option_value("colorcolumn", "79", {}) + +vim.g.languagetool_server_command = "/usr/bin/languagetool --http" diff --git a/vim/.config/nvim/lua/plugins/languatetool.lua b/vim/.config/nvim/lua/plugins/languatetool.lua new file mode 100644 index 0000000..1a17fb2 --- /dev/null +++ b/vim/.config/nvim/lua/plugins/languatetool.lua @@ -0,0 +1,4 @@ +return { + -- Add vim-ledger + { "vigoux/LanguageTool.nvim" }, +}