Some vim stuff

This commit is contained in:
elkowar 2021-08-03 20:18:47 +02:00
parent 9ca125a81c
commit cdd9b2f698
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F
5 changed files with 39 additions and 6 deletions

View file

@ -42,6 +42,7 @@
"p" (cmd "Telescope find_files" "Open file-browser")
":" (cmd "Telescope commands" "Search command with fzf")
"s" (cmd "w" "Save file")
"g" (cmd "Neogit" "Git")
"m" {:name "+Code actions"
"d" (cmd "Lspsaga hover_doc" "Show documentation")
@ -75,13 +76,15 @@
"n" (cmd "set relativenumber!" "toggle relative numbers")
"m" (cmd "set nonumber! norelativenumber" "toggle numbers")
"g" (cmd "Goyo | set linebreak" "toggle focus mode")
"i" (cmd "IndentGuidesToggle" "toggle indent guides")}
"i" (cmd "IndentGuidesToggle" "toggle indent guides")
"s" (cmd "VSSplit" "keep selection visible in split")}
"b" {:name "+buffers"
"b" (cmd "Buffers" "select open buffer")
"c" (cmd "bdelete!" "close open buffer")
"w" (cmd "bwipeout!" "wipeout open buffer")}}
{:prefix "<leader>"})
(wk.register

View file

@ -3,9 +3,15 @@
(packer-use
"/home/leon/coding/projects/nvim-gehzu" {}
"/home/leon/coding/projects/yuck.vim" {}
:elkowar/antifennel-nvim {:config #(set vim.g.antifennel_executable "/home/leon/tmp/antifennel/antifennel")}
:elkowar/kmonad.vim {}
:rhysd/conflict-marker.vim {}
:wellle/visual-split.vim {}
:sindrets/diffview.nvim {}
:TimUntersberger/neogit {:mod "dots.plugins.neogit"
:cmd ["Neogit"]}
:lifepillar/vim-gruvbox8 {:opt false
:config #(do (set vim.g.gruvbox_italics 0)
@ -89,11 +95,14 @@
:iamcco/markdown-preview.nvim {:run vim.fn.mkdp#util#install}
;:mfussenegger/nvim-dap {:opt true
:rcarriga/nvim-dap-ui {:opt false
:config #((. (require :dapui) :setup))
:requires [:mfussenegger/nvim-dap]}
:mfussenegger/nvim-dap {:opt false}
;:mod "dots.plugins.nvim-dap"}
;:nvim-telescope/telescope-dap.nvim {:opt true
;:requires [:mfussenegger/nvim-dap
;:nvim-telescope/telescope.nvim]}
:nvim-telescope/telescope-dap.nvim {:opt false
:requires [:mfussenegger/nvim-dap
:nvim-telescope/telescope.nvim]}
; code-related ----------------------------------------- <<<
@ -159,7 +168,8 @@
:requires ["mattn/webapi-vim"]
:config #(do (set vim.g.rustfmt_fail_silently 1))}
:simrat39/rust-tools.nvim {}
:simrat39/rust-tools.nvim {:requires ["nvim-lua/popup.nvim" "nvim-lua/plenary.nvim"]}
:qnighy/lalrpop.vim {}
:edwinb/idris2-vim {:ft ["idris2"]}

View file

@ -68,7 +68,20 @@
(init-lsp :svelte)
;(init-lsp :clangd)
;(init-lsp :ccls)
(when (not lsp.ewwls)
(set lsp-configs.ewwls
{:default_config {:cmd [ "/home/leon/coding/projects/ls-eww/crates/ewwls/target/debug/ewwls"]
:filetypes ["yuck"]
:root_dir (fn [fname] (or (lsp.util.find_git_ancestor fname) (vim.loop.os_homedir)))
:settings {}}}))
(init-lsp :ewwls)
(init-lsp :cssls {:filestypes ["css" "scss" "less" "stylus"]
:root_dir (lsp.util.root_pattern ["package.json" ".git"])
:settings {:css {:validate true}
:less {:validate true}
:scss {:validate true}}})

View file

@ -0,0 +1,6 @@
(module dots.plugins.neogit
{autoload {a aniseed.core
neogit neogit}})
(neogit.setup
{:integrations {:diffview true}})

View file

@ -9,5 +9,6 @@
:extensions {:frecency {:persistent_filter false}}})
(telescope.load_extension "frecency")
(telescope.load_extension "dap")
(utils.keymap :n :<C-p> ":Telescope find_files<CR>")