mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 21:52:23 +00:00
Some vim stuff
This commit is contained in:
parent
9ca125a81c
commit
cdd9b2f698
5 changed files with 39 additions and 6 deletions
|
@ -42,6 +42,7 @@
|
||||||
"p" (cmd "Telescope find_files" "Open file-browser")
|
"p" (cmd "Telescope find_files" "Open file-browser")
|
||||||
":" (cmd "Telescope commands" "Search command with fzf")
|
":" (cmd "Telescope commands" "Search command with fzf")
|
||||||
"s" (cmd "w" "Save file")
|
"s" (cmd "w" "Save file")
|
||||||
|
"g" (cmd "Neogit" "Git")
|
||||||
|
|
||||||
"m" {:name "+Code actions"
|
"m" {:name "+Code actions"
|
||||||
"d" (cmd "Lspsaga hover_doc" "Show documentation")
|
"d" (cmd "Lspsaga hover_doc" "Show documentation")
|
||||||
|
@ -75,13 +76,15 @@
|
||||||
"n" (cmd "set relativenumber!" "toggle relative numbers")
|
"n" (cmd "set relativenumber!" "toggle relative numbers")
|
||||||
"m" (cmd "set nonumber! norelativenumber" "toggle numbers")
|
"m" (cmd "set nonumber! norelativenumber" "toggle numbers")
|
||||||
"g" (cmd "Goyo | set linebreak" "toggle focus mode")
|
"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" {:name "+buffers"
|
||||||
"b" (cmd "Buffers" "select open buffer")
|
"b" (cmd "Buffers" "select open buffer")
|
||||||
"c" (cmd "bdelete!" "close open buffer")
|
"c" (cmd "bdelete!" "close open buffer")
|
||||||
"w" (cmd "bwipeout!" "wipeout open buffer")}}
|
"w" (cmd "bwipeout!" "wipeout open buffer")}}
|
||||||
|
|
||||||
|
|
||||||
{:prefix "<leader>"})
|
{:prefix "<leader>"})
|
||||||
|
|
||||||
(wk.register
|
(wk.register
|
||||||
|
|
|
@ -3,9 +3,15 @@
|
||||||
|
|
||||||
(packer-use
|
(packer-use
|
||||||
"/home/leon/coding/projects/nvim-gehzu" {}
|
"/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/antifennel-nvim {:config #(set vim.g.antifennel_executable "/home/leon/tmp/antifennel/antifennel")}
|
||||||
:elkowar/kmonad.vim {}
|
: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
|
:lifepillar/vim-gruvbox8 {:opt false
|
||||||
:config #(do (set vim.g.gruvbox_italics 0)
|
:config #(do (set vim.g.gruvbox_italics 0)
|
||||||
|
@ -89,11 +95,14 @@
|
||||||
|
|
||||||
:iamcco/markdown-preview.nvim {:run vim.fn.mkdp#util#install}
|
: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"}
|
;:mod "dots.plugins.nvim-dap"}
|
||||||
;:nvim-telescope/telescope-dap.nvim {:opt true
|
:nvim-telescope/telescope-dap.nvim {:opt false
|
||||||
;:requires [:mfussenegger/nvim-dap
|
:requires [:mfussenegger/nvim-dap
|
||||||
;:nvim-telescope/telescope.nvim]}
|
:nvim-telescope/telescope.nvim]}
|
||||||
|
|
||||||
; code-related ----------------------------------------- <<<
|
; code-related ----------------------------------------- <<<
|
||||||
|
|
||||||
|
@ -159,7 +168,8 @@
|
||||||
:requires ["mattn/webapi-vim"]
|
:requires ["mattn/webapi-vim"]
|
||||||
:config #(do (set vim.g.rustfmt_fail_silently 1))}
|
: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 {}
|
:qnighy/lalrpop.vim {}
|
||||||
|
|
||||||
:edwinb/idris2-vim {:ft ["idris2"]}
|
:edwinb/idris2-vim {:ft ["idris2"]}
|
||||||
|
|
|
@ -68,7 +68,20 @@
|
||||||
(init-lsp :svelte)
|
(init-lsp :svelte)
|
||||||
;(init-lsp :clangd)
|
;(init-lsp :clangd)
|
||||||
;(init-lsp :ccls)
|
;(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"]
|
(init-lsp :cssls {:filestypes ["css" "scss" "less" "stylus"]
|
||||||
|
:root_dir (lsp.util.root_pattern ["package.json" ".git"])
|
||||||
:settings {:css {:validate true}
|
:settings {:css {:validate true}
|
||||||
:less {:validate true}
|
:less {:validate true}
|
||||||
:scss {:validate true}}})
|
:scss {:validate true}}})
|
||||||
|
|
6
nvim/.config/nvim/fnl/dots/plugins/neogit.fnl
Normal file
6
nvim/.config/nvim/fnl/dots/plugins/neogit.fnl
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
(module dots.plugins.neogit
|
||||||
|
{autoload {a aniseed.core
|
||||||
|
neogit neogit}})
|
||||||
|
|
||||||
|
(neogit.setup
|
||||||
|
{:integrations {:diffview true}})
|
|
@ -9,5 +9,6 @@
|
||||||
:extensions {:frecency {:persistent_filter false}}})
|
:extensions {:frecency {:persistent_filter false}}})
|
||||||
|
|
||||||
(telescope.load_extension "frecency")
|
(telescope.load_extension "frecency")
|
||||||
|
(telescope.load_extension "dap")
|
||||||
|
|
||||||
(utils.keymap :n :<C-p> ":Telescope find_files<CR>")
|
(utils.keymap :n :<C-p> ":Telescope find_files<CR>")
|
||||||
|
|
Loading…
Reference in a new issue