Add customizations
This commit is contained in:
parent
93fde0556e
commit
af39dd4a9f
13 changed files with 151 additions and 28 deletions
1
after/ftplugin/markdown.lua
Normal file
1
after/ftplugin/markdown.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
vim.opt_local.wrap = true
|
||||
10
after/ftplugin/rust.lua
Normal file
10
after/ftplugin/rust.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
local bufnr = vim.api.nvim_get_current_buf()
|
||||
vim.keymap.set(
|
||||
"n",
|
||||
"<leader>a",
|
||||
function()
|
||||
vim.cmd.RustLsp('codeAction') -- supports rust-analyzer's grouping
|
||||
-- or vim.lsp.buf.codeAction() if you don't want grouping.
|
||||
end,
|
||||
{ desc = "Rust LSP Code [Action]", silent = true, buffer = bufnr }
|
||||
)
|
||||
1
after/ftplugin/typst.lua
Normal file
1
after/ftplugin/typst.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
vim.opt_local.wrap = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue