misc: various changes
This commit is contained in:
parent
ffb7079a15
commit
b6633152e6
2 changed files with 7 additions and 12 deletions
3
init.lua
3
init.lua
|
@ -25,9 +25,6 @@ vim.o.cursorline = true
|
||||||
-- Enable auto-indentation
|
-- Enable auto-indentation
|
||||||
vim.o.autoindent = true
|
vim.o.autoindent = true
|
||||||
|
|
||||||
-- Set completion options
|
|
||||||
vim.o.completeopt = "menu,menuone,noselect"
|
|
||||||
|
|
||||||
-- Highlight search results
|
-- Highlight search results
|
||||||
vim.o.hlsearch = true
|
vim.o.hlsearch = true
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,12 @@ require("lazy").setup({
|
||||||
require("nvim-tree-config")
|
require("nvim-tree-config")
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
|
renderer = {
|
||||||
|
highlight_modified = "name",
|
||||||
|
},
|
||||||
|
modified = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
@ -60,15 +66,7 @@ require("lazy").setup({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"simrat39/rust-tools.nvim",
|
"simrat39/rust-tools.nvim",
|
||||||
opts = {
|
opts = {},
|
||||||
on_attach = function(_, bufnr)
|
|
||||||
vim.notify("rust-tools attached")
|
|
||||||
-- Hover actions
|
|
||||||
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
|
||||||
-- Code action groups
|
|
||||||
vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"axieax/urlview.nvim",
|
"axieax/urlview.nvim",
|
||||||
|
|
Loading…
Add table
Reference in a new issue