Compare commits

..

2 Commits

Author SHA1 Message Date
Olli Vuolteenaho c0efc6d039 Add neotree 2024-01-23 09:08:41 +02:00
Olli Vuolteenaho 65cc4496be Add search stuff 2024-01-16 15:07:44 +02:00
1 changed files with 30 additions and 1 deletions

View File

@ -254,6 +254,29 @@ require('lazy').setup({
build = ':TSUpdate', build = ':TSUpdate',
}, },
-- Neotree
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
config = function()
require('neo-tree').setup {
filesystem = {
filtered_items = {
hide_dotfiles = true,
hide_gitignore = true,
},
hijack_netrw_behavior = "open_default",
},
}
end,
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
},
}
-- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
-- These are some example plugins that I've included in the kickstart repository. -- These are some example plugins that I've included in the kickstart repository.
-- Uncomment any of the lines below to enable them. -- Uncomment any of the lines below to enable them.
@ -274,7 +297,7 @@ require('lazy').setup({
-- NOTE: You can change these options as you wish! -- NOTE: You can change these options as you wish!
-- Set highlight on search -- Set highlight on search
vim.o.hlsearch = false vim.o.hlsearch = true
-- Make line numbers default -- Make line numbers default
vim.wo.number = true vim.wo.number = true
@ -494,6 +517,12 @@ end, 0)
-- Newline on <CR> -- Newline on <CR>
vim.keymap.set('n', '<CR>', 'o<Esc>') vim.keymap.set('n', '<CR>', 'o<Esc>')
-- Drop hlsearch
vim.keymap.set('n', '?q', ':set hlsearch!<CR>')
-- Drop line numbers
vim.keymap.set('n', '?l', ':set number!<CR>')
-- [[ Configure LSP ]] -- [[ Configure LSP ]]
-- This function gets run when an LSP connects to a particular buffer. -- This function gets run when an LSP connects to a particular buffer.
local on_attach = function(_, bufnr) local on_attach = function(_, bufnr)