This commit is contained in:
elkowar 2021-08-06 14:46:49 +02:00
parent cdd9b2f698
commit 5946ad4314
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F
5 changed files with 22 additions and 13 deletions

View file

@ -22,6 +22,7 @@
(fn cmd [s desc] [(.. "<cmd>" s "<cr>") desc])
(fn sel-cmd [s desc] [(.. "<cmd>'<,'>" s "<cr>") desc])
(fn rebind [s desc] [s desc])
@ -76,8 +77,7 @@
"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")
"s" (cmd "VSSplit" "keep selection visible in split")}
"i" (cmd "IndentGuidesToggle" "toggle indent guides")}
"b" {:name "+buffers"
"b" (cmd "Buffers" "select open buffer")
@ -97,6 +97,11 @@
(wk.register
{"<tab>" "which_key_ignore"}
{:mode "i"})
(wk.register
{"s" (sel-cmd "VSSplit" "keep selection visible in split")}
{:prefix "<leader>"
:mode "v"})
(wk.register
{:name "+Selection"

View file

@ -23,9 +23,9 @@
:nvim-telescope/telescope.nvim {:mod "dots.plugins.telescope"
:cmd ["Telescope"]
:requires [:nvim-lua/popup.nvim
:nvim-lua/plenary.nvim
:nvim-telescope/telescope.nvim]}
:nvim-lua/plenary.nvim]}
:nvim-telescope/telescope-packer.nvim {}
:nvim-telescope/telescope-frecency.nvim {:requires [:tami5/sql.nvim]
:opt false}
;:config #((. (require :telescope) :load_extension) "frecency")}

View file

@ -95,6 +95,7 @@
(let [rust-tools (require "rust-tools")]
(rust-tools.setup {:tools {:inlay_hints {:show_parameter_hints 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")
sumneko_binary (.. sumneko_root_path "/bin/Linux/lua-language-server")]

View file

@ -12,15 +12,17 @@
:name "lldb"})
;; TODO This does not really work,.. REEEEEEEEEEEEEEE
(set dap.adapters.rust
{:type "executable"
:attach {:pidProperty "pid" :pidSelect "ask"}
:command "lldb-vscode"
:env {:LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY "yes"}
:name "lldb"
: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.rust
;{:type "executable"
;:attach {:pidProperty "pid" :pidSelect "ask"}
;:command "lldb-vscode"
;:env {:LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY "yes"}
;:name "lldb"
;: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
{:type "executable"

View file

@ -10,5 +10,6 @@
(telescope.load_extension "frecency")
(telescope.load_extension "dap")
(telescope.load_extension "packer")
(utils.keymap :n :<C-p> ":Telescope find_files<CR>")