mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-26 06:02:23 +00:00
asdf
This commit is contained in:
parent
cdd9b2f698
commit
5946ad4314
5 changed files with 22 additions and 13 deletions
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
(fn cmd [s desc] [(.. "<cmd>" s "<cr>") desc])
|
(fn cmd [s desc] [(.. "<cmd>" s "<cr>") desc])
|
||||||
|
(fn sel-cmd [s desc] [(.. "<cmd>'<,'>" s "<cr>") desc])
|
||||||
(fn rebind [s desc] [s desc])
|
(fn rebind [s desc] [s desc])
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,8 +77,7 @@
|
||||||
"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")
|
||||||
|
@ -97,6 +97,11 @@
|
||||||
(wk.register
|
(wk.register
|
||||||
{"<tab>" "which_key_ignore"}
|
{"<tab>" "which_key_ignore"}
|
||||||
{:mode "i"})
|
{:mode "i"})
|
||||||
|
|
||||||
|
(wk.register
|
||||||
|
{"s" (sel-cmd "VSSplit" "keep selection visible in split")}
|
||||||
|
{:prefix "<leader>"
|
||||||
|
:mode "v"})
|
||||||
|
|
||||||
(wk.register
|
(wk.register
|
||||||
{:name "+Selection"
|
{:name "+Selection"
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
:nvim-telescope/telescope.nvim {:mod "dots.plugins.telescope"
|
:nvim-telescope/telescope.nvim {:mod "dots.plugins.telescope"
|
||||||
:cmd ["Telescope"]
|
:cmd ["Telescope"]
|
||||||
:requires [:nvim-lua/popup.nvim
|
:requires [:nvim-lua/popup.nvim
|
||||||
:nvim-lua/plenary.nvim
|
:nvim-lua/plenary.nvim]}
|
||||||
:nvim-telescope/telescope.nvim]}
|
|
||||||
|
|
||||||
|
:nvim-telescope/telescope-packer.nvim {}
|
||||||
:nvim-telescope/telescope-frecency.nvim {:requires [:tami5/sql.nvim]
|
:nvim-telescope/telescope-frecency.nvim {:requires [:tami5/sql.nvim]
|
||||||
:opt false}
|
:opt false}
|
||||||
;:config #((. (require :telescope) :load_extension) "frecency")}
|
;:config #((. (require :telescope) :load_extension) "frecency")}
|
||||||
|
|
|
@ -95,6 +95,7 @@
|
||||||
(let [rust-tools (require "rust-tools")]
|
(let [rust-tools (require "rust-tools")]
|
||||||
(rust-tools.setup {:tools {:inlay_hints {:show_parameter_hints false}
|
(rust-tools.setup {:tools {:inlay_hints {:show_parameter_hints false}
|
||||||
:autoSetHints false}}))
|
:autoSetHints false}}))
|
||||||
|
;:server {:cmd ["/home/leon/coding/prs/rust-analyzer/target/release/rust-analyzer"]}}))
|
||||||
|
|
||||||
(let [sumneko_root_path (.. vim.env.HOME "/.local/share/lua-language-server")
|
(let [sumneko_root_path (.. vim.env.HOME "/.local/share/lua-language-server")
|
||||||
sumneko_binary (.. sumneko_root_path "/bin/Linux/lua-language-server")]
|
sumneko_binary (.. sumneko_root_path "/bin/Linux/lua-language-server")]
|
||||||
|
|
|
@ -12,15 +12,17 @@
|
||||||
:name "lldb"})
|
:name "lldb"})
|
||||||
|
|
||||||
;; TODO This does not really work,.. REEEEEEEEEEEEEEE
|
;; TODO This does not really work,.. REEEEEEEEEEEEEEE
|
||||||
(set dap.adapters.rust
|
|
||||||
{:type "executable"
|
|
||||||
:attach {:pidProperty "pid" :pidSelect "ask"}
|
;(set dap.adapters.rust
|
||||||
:command "lldb-vscode"
|
;{:type "executable"
|
||||||
:env {:LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY "yes"}
|
;:attach {:pidProperty "pid" :pidSelect "ask"}
|
||||||
:name "lldb"
|
;:command "lldb-vscode"
|
||||||
:initCommands ["command script import \"/home/leon/.rustup/toolchains/nightly-2021-03-18-x86_64-unknown-linux-gnu/lib/rustlib/etc/lldb_lookup.py\""
|
;:env {:LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY "yes"}
|
||||||
"type summary add --no-value --python-function lldb_rust_formatters.print_val -x \".*\" --category Rust"
|
;:name "lldb"
|
||||||
"type category enable Rust"]})
|
;:initCommands ["command script import \"/home/leon/.rustup/toolchains/nightly-2021-03-18-x86_64-unknown-linux-gnu/lib/rustlib/etc/lldb_lookup.py\""
|
||||||
|
;"type summary add --no-value --python-function lldb_rust_formatters.print_val -x \".*\" --category Rust"
|
||||||
|
;"type category enable Rust"]})
|
||||||
|
|
||||||
(set dap.adapters.node2
|
(set dap.adapters.node2
|
||||||
{:type "executable"
|
{:type "executable"
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
|
|
||||||
(telescope.load_extension "frecency")
|
(telescope.load_extension "frecency")
|
||||||
(telescope.load_extension "dap")
|
(telescope.load_extension "dap")
|
||||||
|
(telescope.load_extension "packer")
|
||||||
|
|
||||||
(utils.keymap :n :<C-p> ":Telescope find_files<CR>")
|
(utils.keymap :n :<C-p> ":Telescope find_files<CR>")
|
||||||
|
|
Loading…
Reference in a new issue