mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 03:12:24 +00:00
Setup glance and stuff
This commit is contained in:
parent
133c46fe96
commit
32e98738ca
3 changed files with 28 additions and 18 deletions
|
@ -5,7 +5,8 @@
|
||||||
utils dots.utils
|
utils dots.utils
|
||||||
wk which-key
|
wk which-key
|
||||||
treesitter-selection nvim-treesitter.incremental_selection
|
treesitter-selection nvim-treesitter.incremental_selection
|
||||||
lspactions lspactions}
|
lspactions lspactions
|
||||||
|
glance glance}
|
||||||
require-macros [macros]})
|
require-macros [macros]})
|
||||||
|
|
||||||
; undo autopairs fuckup
|
; undo autopairs fuckup
|
||||||
|
@ -48,6 +49,8 @@
|
||||||
(vim.lsp.buf.format {:async true})
|
(vim.lsp.buf.format {:async true})
|
||||||
(vim.cmd "Neoformat")))
|
(vim.cmd "Neoformat")))
|
||||||
|
|
||||||
|
(defn open-rename []
|
||||||
|
(vim.api.nvim_feedkeys (.. ":IncRename " (vim.fn.expand "<cword>")) "n" ""))
|
||||||
|
|
||||||
|
|
||||||
(wk.setup {})
|
(wk.setup {})
|
||||||
|
@ -83,7 +86,7 @@
|
||||||
"S" (cmd "Telescope lsp_document_symbols" "Symbols in document")
|
"S" (cmd "Telescope lsp_document_symbols" "Symbols in document")
|
||||||
"s" (cmd "Telescope lsp_dynamic_workspace_symbols" "Symbols in workspace")
|
"s" (cmd "Telescope lsp_dynamic_workspace_symbols" "Symbols in workspace")
|
||||||
"T" [vim.lsp.buf.signature_help "Show signature help"]
|
"T" [vim.lsp.buf.signature_help "Show signature help"]
|
||||||
"n" (cmd "IncRename " "Rename")
|
"n" [open-rename "Rename"]
|
||||||
"v" (cmd "CodeActionMenu" "Apply codeaction")
|
"v" (cmd "CodeActionMenu" "Apply codeaction")
|
||||||
"A" [#(vim.diagnostic.open_float {:scope :cursor}) "Cursor diagnostics"]
|
"A" [#(vim.diagnostic.open_float {:scope :cursor}) "Cursor diagnostics"]
|
||||||
"a" [#(vim.diagnostic.open_float {}) "Line diagnostics"]
|
"a" [#(vim.diagnostic.open_float {}) "Line diagnostics"]
|
||||||
|
@ -95,7 +98,12 @@
|
||||||
"i" (cmd "Trouble lsp_implementations" "Show implementation")
|
"i" (cmd "Trouble lsp_implementations" "Show implementation")
|
||||||
"g" (cmd "Trouble lsp_definitions" "Go to definition")
|
"g" (cmd "Trouble lsp_definitions" "Go to definition")
|
||||||
"f" [format "format file"]
|
"f" [format "format file"]
|
||||||
"," (cmd "RustRunnables" "Run rust stuff")}
|
"," (cmd "RustRunnables" "Run rust stuff")
|
||||||
|
"x" {:name "+Glance"
|
||||||
|
"d" [#(glance.open "definitions") "Definitions"]
|
||||||
|
"r" [#(glance.open "references") "References"]
|
||||||
|
"t" [#(glance.open "type_definitions") "Type definitions"]
|
||||||
|
"i" [#(glance.open "implementations") "Implementations"]}}
|
||||||
|
|
||||||
"f" {:name "+folds"
|
"f" {:name "+folds"
|
||||||
"o" (cmd "foldopen" "open fold")
|
"o" (cmd "foldopen" "open fold")
|
||||||
|
@ -112,8 +120,8 @@
|
||||||
|
|
||||||
"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>"})
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
(let [name (. pkgs i)
|
(let [name (. pkgs i)
|
||||||
opts (. pkgs (+ i 1))]
|
opts (. pkgs (+ i 1))]
|
||||||
(table.insert args (a.assoc opts 1 name))))
|
(table.insert args (a.assoc opts 1 name))))
|
||||||
(lazy.setup args)))
|
(lazy.setup args {:colorscheme "gruvbox8"})))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,13 +55,13 @@
|
||||||
:luukvbaal/stabilize.nvim {:config #(setup :stabilize)}
|
:luukvbaal/stabilize.nvim {:config #(setup :stabilize)}
|
||||||
|
|
||||||
:tweekmonster/startuptime.vim {:cmd ["StartupTime"]}
|
:tweekmonster/startuptime.vim {:cmd ["StartupTime"]}
|
||||||
:folke/noice.nvim {:lazy true
|
:folke/noice.nvim {:config #(setup :noice {:presets {:inc_rename true}})
|
||||||
:config #(setup :noice {:presets {:inc_rename true}})
|
|
||||||
:dependencies [:MunifTanjim/nui.nvim]}
|
:dependencies [:MunifTanjim/nui.nvim]}
|
||||||
:folke/persistence.nvim {:config #(require "dots.plugins.persistence")}
|
:folke/persistence.nvim {:config #(require "dots.plugins.persistence")}
|
||||||
:folke/zen-mode.nvim {:config #(require "dots.plugins.zen-mode")
|
:folke/zen-mode.nvim {:config #(require "dots.plugins.zen-mode")
|
||||||
:cmd ["ZenMode"]}
|
:cmd ["ZenMode"]}
|
||||||
:folke/twilight.nvim {:config #(require "dots.plugins.twilight")}
|
:folke/twilight.nvim {:config #(require "dots.plugins.twilight")}
|
||||||
|
:moll/vim-bbye {:lazy true :cmd [:Bdelete :Bwipeout]}
|
||||||
:nvim-telescope/telescope.nvim {:config #(require "dots.plugins.telescope")
|
:nvim-telescope/telescope.nvim {:config #(require "dots.plugins.telescope")
|
||||||
:cmd ["Telescope"]
|
:cmd ["Telescope"]
|
||||||
:dependencies [:nvim-lua/popup.nvim
|
:dependencies [:nvim-lua/popup.nvim
|
||||||
|
@ -137,11 +137,14 @@
|
||||||
:weilbith/nvim-code-action-menu {:cmd "CodeActionMenu"
|
:weilbith/nvim-code-action-menu {:cmd "CodeActionMenu"
|
||||||
:config #(set vim.g.code_action_menu_show_details false)}
|
:config #(set vim.g.code_action_menu_show_details false)}
|
||||||
|
|
||||||
;:folke/trouble.nvim {:opt false}
|
:folke/trouble.nvim {:lazy true
|
||||||
:elkowar/trouble.nvim {:branch "fix_error_on_nil_window"
|
|
||||||
:config #(require "dots.plugins.trouble")
|
:config #(require "dots.plugins.trouble")
|
||||||
:cmd ["Trouble" "TroubleClose" "TroubleRefresh" "TroubleToggle"]}
|
:cmd ["Trouble" "TroubleClose" "TroubleRefresh" "TroubleToggle"]}
|
||||||
|
|
||||||
|
; :elkowar/trouble.nvim {:branch "fix_error_on_nil_window"
|
||||||
|
; :config #(require "dots.plugins.trouble")
|
||||||
|
; :cmd ["Trouble" "TroubleClose" "TroubleRefresh" "TroubleToggle"]}
|
||||||
|
|
||||||
:simrat39/symbols-outline.nvim {:config #(require "dots.plugins.symbols-outline")}
|
:simrat39/symbols-outline.nvim {:config #(require "dots.plugins.symbols-outline")}
|
||||||
|
|
||||||
:neovim/nvim-lspconfig {}
|
:neovim/nvim-lspconfig {}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{
|
{
|
||||||
"Comment.nvim": { "branch": "master", "commit": "e89df176e8b38e931b7e71a470f923a317976d86" },
|
|
||||||
"Ionide-vim": { "branch": "master", "commit": "a66845162ae4c2ad06d76e003c0aab235aac2ede" },
|
|
||||||
"agda-vim": { "branch": "master", "commit": "4a0f475aaef756702222bdd5b01e25f814f5691f" },
|
"agda-vim": { "branch": "master", "commit": "4a0f475aaef756702222bdd5b01e25f814f5691f" },
|
||||||
"aniseed": { "branch": "master", "commit": "a7445c340fb7a0529f3c413eb99d3f8d29f50ba2" },
|
"aniseed": { "branch": "develop", "commit": "a7445c340fb7a0529f3c413eb99d3f8d29f50ba2" },
|
||||||
"antifennel-nvim": { "branch": "master", "commit": "79261d02213a5093135e5d02431682f04459f0f7" },
|
"antifennel-nvim": { "branch": "master", "commit": "79261d02213a5093135e5d02431682f04459f0f7" },
|
||||||
"any-jump.vim": { "branch": "master", "commit": "9768403b6381ce3758cebac9613910c0160969e3" },
|
"any-jump.vim": { "branch": "master", "commit": "9768403b6381ce3758cebac9613910c0160969e3" },
|
||||||
"ats-vim": { "branch": "master", "commit": "8e3e722b6d09ed81313573b4e7b108b265628ff1" },
|
"ats-vim": { "branch": "master", "commit": "8e3e722b6d09ed81313573b4e7b108b265628ff1" },
|
||||||
|
@ -35,12 +33,12 @@
|
||||||
"inc-rename.nvim": { "branch": "main", "commit": "48c4aa2be19f79e79b465a9bb37ee9fbe6c606f5" },
|
"inc-rename.nvim": { "branch": "main", "commit": "48c4aa2be19f79e79b465a9bb37ee9fbe6c606f5" },
|
||||||
"kmonad-vim": { "branch": "master", "commit": "37978445197ab00edeb5b731e9ca90c2b141723f" },
|
"kmonad-vim": { "branch": "master", "commit": "37978445197ab00edeb5b731e9ca90c2b141723f" },
|
||||||
"lalrpop.vim": { "branch": "master", "commit": "7073eec8efdeff37cacd4bca378c28dad02c3c14" },
|
"lalrpop.vim": { "branch": "master", "commit": "7073eec8efdeff37cacd4bca378c28dad02c3c14" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "0d0d5870a3265f1c92a89dccef4a592c44e70179" },
|
"lazy.nvim": { "branch": "main", "commit": "984008f7ae17c1a8009d9e2f6dc007e13b90a744" },
|
||||||
"litee.nvim": { "branch": "main", "commit": "bf366a1414fd0f9401631ac8884f2f9fa4bf18d2" },
|
"litee.nvim": { "branch": "main", "commit": "bf366a1414fd0f9401631ac8884f2f9fa4bf18d2" },
|
||||||
"lsp_signature.nvim": { "branch": "master", "commit": "1979f1118e2b38084e7c148f279eed6e9300a342" },
|
"lsp_signature.nvim": { "branch": "master", "commit": "1979f1118e2b38084e7c148f279eed6e9300a342" },
|
||||||
"mercury-vim": { "branch": "master", "commit": "8749bec220c684d644202d0fef3246ad0c73d5c4" },
|
|
||||||
"neoformat": { "branch": "master", "commit": "ec601d38a2e9309109f405ce038c5a6ce774f1a9" },
|
"neoformat": { "branch": "master", "commit": "ec601d38a2e9309109f405ce038c5a6ce774f1a9" },
|
||||||
"neogit": { "branch": "master", "commit": "981207efd10425fef82ca09fa8bd22c3ac3e622d" },
|
"neogit": { "branch": "master", "commit": "981207efd10425fef82ca09fa8bd22c3ac3e622d" },
|
||||||
|
"nerdcommenter": { "branch": "master", "commit": "98cc4a2d64ca67cccbf5b5cf47c682ebadaaff58" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "3d4b80d720fea1905a9df004e70a329f58b3f2b7" },
|
"noice.nvim": { "branch": "main", "commit": "3d4b80d720fea1905a9df004e70a329f58b3f2b7" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "257da38029d3859ed111804f9d4e95b0fa993a31" },
|
"nui.nvim": { "branch": "main", "commit": "257da38029d3859ed111804f9d4e95b0fa993a31" },
|
||||||
"nvim-bufferline.lua": { "branch": "main", "commit": "874f869a24e568980294b3200fc9dd842db65a36" },
|
"nvim-bufferline.lua": { "branch": "main", "commit": "874f869a24e568980294b3200fc9dd842db65a36" },
|
||||||
|
@ -73,9 +71,10 @@
|
||||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "62ea5e58c7bbe191297b983a9e7e89420f581369" },
|
"telescope-ui-select.nvim": { "branch": "master", "commit": "62ea5e58c7bbe191297b983a9e7e89420f581369" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "b69b33eded07341253bc1f0b4ae6bbc5c411a2ab" },
|
"telescope.nvim": { "branch": "master", "commit": "b69b33eded07341253bc1f0b4ae6bbc5c411a2ab" },
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "077c59586d9d0726b0696dc5680eb863f4e04bc5" },
|
"todo-comments.nvim": { "branch": "main", "commit": "077c59586d9d0726b0696dc5680eb863f4e04bc5" },
|
||||||
"trouble.nvim": { "branch": "fix_error_on_nil_window", "commit": "2b4fee6ff21f1649181e5b6d0ed69baa342cf615" },
|
"trouble.nvim": { "branch": "main", "commit": "83ec606e7065adf134d17f4af6bae510e3c491c1" },
|
||||||
"twilight.nvim": { "branch": "main", "commit": "8bb7fa7b918baab1ca81b977102ddb54afa63512" },
|
"twilight.nvim": { "branch": "main", "commit": "8bb7fa7b918baab1ca81b977102ddb54afa63512" },
|
||||||
"typescript-vim": { "branch": "master", "commit": "52f3ca3474d51f5021696ffb7297d989e49121ac" },
|
"typescript-vim": { "branch": "master", "commit": "52f3ca3474d51f5021696ffb7297d989e49121ac" },
|
||||||
|
"vim-bbye": { "branch": "master", "commit": "25ef93ac5a87526111f43e5110675032dbcacf56" },
|
||||||
"vim-exchange": { "branch": "master", "commit": "784d63083ad7d613aa96f00021cd0dfb126a781a" },
|
"vim-exchange": { "branch": "master", "commit": "784d63083ad7d613aa96f00021cd0dfb126a781a" },
|
||||||
"vim-fugitive": { "branch": "master", "commit": "9c5f675db54139c18ed4a1a18989ea2da37d6cae" },
|
"vim-fugitive": { "branch": "master", "commit": "9c5f675db54139c18ed4a1a18989ea2da37d6cae" },
|
||||||
"vim-gh-line": { "branch": "master", "commit": "fbf368bdfad7e5478009a6dc62559e6b2c72d603" },
|
"vim-gh-line": { "branch": "master", "commit": "fbf368bdfad7e5478009a6dc62559e6b2c72d603" },
|
||||||
|
|
Loading…
Reference in a new issue