Skip to content

Commit

Permalink
add neotree; ts_ls; fidget
Browse files Browse the repository at this point in the history
  • Loading branch information
solidsnakedev committed Dec 10, 2024
1 parent 8df869f commit 01e43ed
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
26 changes: 17 additions & 9 deletions modules/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ map('n', '<S-Up>', 'yyddkP')
map('n', '<S-Down>', 'yyddp')
nmap('<Leader>h', ':nohl<cr>') -- Toggle highlight search

nmap("<leader>n", ":NvimTreeToggle<cr>")
nmap("<leader>n", ":Neotree toggle<cr>")
nmap("<leader>gg", ":LazyGit<cr>")
nmap("<leader>ff", ":Telescope find_files<cr>")
nmap("<leader>fg", ":Telescope live_grep<cr>")
Expand All @@ -93,16 +93,24 @@ nmap("<S-H>", ":BufferLineCyclePrev<cr>")
nmap("<leader>c", ":Bdelete<cr>")


require("nvim-tree").setup {
actions = {
open_file = {
quit_on_open = true,
},
require("neo-tree").setup({
close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab
window = {
position = "right",
},
view = {
side = "right"
event_handlers = {
{
event = "file_open_requested",
handler = function()
-- auto close
-- vim.cmd("Neotree close")
-- OR
require("neo-tree.command").execute({ action = "close" })
end
},

}
}
})

local wilder = require('wilder')
wilder.setup({
Expand Down
15 changes: 10 additions & 5 deletions modules/nixvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,22 @@
dressing.enable = true;
dashboard.enable = true;
hop.enable = true;
nvim-tree.enable = true;
neo-tree = {
enable = true;
closeIfLastWindow = true;
};
todo-comments.enable = true;
vim-surround.enable = true;
lastplace.enable = true;
bufdelete.enable = true;
fidget.enable = true;

# lsp
# rust-tools.enable = true;
typescript-tools = {
enable = true;
settings.settings.exposeAsCodeAction = "all";
};
# typescript-tools = {
# enable = true;
# settings.settings.exposeAsCodeAction = "all";
# };
lsp = {
enable = true;
servers = {
Expand All @@ -53,6 +57,7 @@
enable = true;
installGhc = false;
};
ts_ls.enable = true;
};
};
lspsaga = {
Expand Down

0 comments on commit 01e43ed

Please sign in to comment.