@@ -388,6 +388,7 @@ require('lazy').setup({
388
388
389
389
-- Useful for getting pretty icons, but requires a Nerd Font.
390
390
{ ' nvim-tree/nvim-web-devicons' , enabled = vim .g .have_nerd_font },
391
+ { ' nvim-telescope/telescope-file-browser.nvim' },
391
392
},
392
393
config = function ()
393
394
-- Telescope is a fuzzy finder that comes with a lot of different things that
@@ -428,7 +429,7 @@ require('lazy').setup({
428
429
' --hidden' ,
429
430
' -g' ,
430
431
' !.git' ,
431
- }
432
+ },
432
433
},
433
434
},
434
435
extensions = {
@@ -441,6 +442,7 @@ require('lazy').setup({
441
442
-- Enable Telescope extensions if they are installed
442
443
pcall (require (' telescope' ).load_extension , ' fzf' )
443
444
pcall (require (' telescope' ).load_extension , ' ui-select' )
445
+ pcall (require (' telescope' ).load_extension , ' file_browser' )
444
446
445
447
-- See `:help telescope.builtin`
446
448
local builtin = require ' telescope.builtin'
@@ -455,6 +457,10 @@ require('lazy').setup({
455
457
vim .keymap .set (' n' , ' <leader>s.' , builtin .oldfiles , { desc = ' [S]earch Recent Files ("." for repeat)' })
456
458
vim .keymap .set (' n' , ' <leader><leader>' , builtin .buffers , { desc = ' [ ] Find existing buffers' })
457
459
460
+ -- File Browser
461
+ vim .keymap .set (' n' , ' <leader>fb' , ' :Telescope file_browser<CR>' , { desc = ' [F]ile [B]rowser' })
462
+ vim .keymap .set (' n' , ' <space>fbp' , ' :Telescope file_browser path=%:p:h select_buffer=true<CR>' , { desc = ' [F]ile [B]rowser at current [P]ath' })
463
+
458
464
-- Slightly advanced example of overriding default behavior and theme
459
465
vim .keymap .set (' n' , ' <leader>/' , function ()
460
466
-- You can pass additional configuration to Telescope to change the theme, layout, etc.
@@ -712,7 +718,7 @@ require('lazy').setup({
712
718
},
713
719
}
714
720
715
- local lspconfig = require ( ' lspconfig' )
721
+ local lspconfig = require ' lspconfig'
716
722
717
723
-- Ensure the servers and tools above are installed
718
724
--
@@ -748,15 +754,15 @@ require('lazy').setup({
748
754
},
749
755
}
750
756
751
- lspconfig .sourcekit .setup ( {
757
+ lspconfig .sourcekit .setup {
752
758
capabilities = {
753
759
workspace = {
754
760
didChangeWatchedFiles = {
755
761
dyanamicRegistration = true ,
756
- }
757
- }
758
- }
759
- })
762
+ },
763
+ },
764
+ },
765
+ }
760
766
end ,
761
767
},
762
768
@@ -796,17 +802,17 @@ require('lazy').setup({
796
802
formatters_by_ft = {
797
803
lua = { ' stylua' },
798
804
-- Conform can also run multiple formatters sequentially
799
- python = { " ruff" , " isort" , " black" },
805
+ python = { ' ruff' , ' isort' , ' black' },
800
806
--
801
807
-- You can use 'stop_after_first' to run the first available formatter from the list
802
- javascript = { " prettierd" , " prettier" , stop_after_first = true },
803
- javascriptreact = { " prettierd" , " prettier" , stop_after_first = true },
804
- typescript = { " prettierd" , " prettier" , stop_after_first = true },
805
- typescriptreact = { " prettierd" , " prettier" , stop_after_first = true },
806
- css = { " prettierd" , " prettier" , stop_after_first = true },
807
- html = { " prettierd" , " prettier" , stop_after_first = true },
808
- json = { " prettierd" , " prettier" , stop_after_first = true },
809
- yaml = { " prettierd" , " prettier" , stop_after_first = true },
808
+ javascript = { ' prettierd' , ' prettier' , stop_after_first = true },
809
+ javascriptreact = { ' prettierd' , ' prettier' , stop_after_first = true },
810
+ typescript = { ' prettierd' , ' prettier' , stop_after_first = true },
811
+ typescriptreact = { ' prettierd' , ' prettier' , stop_after_first = true },
812
+ css = { ' prettierd' , ' prettier' , stop_after_first = true },
813
+ html = { ' prettierd' , ' prettier' , stop_after_first = true },
814
+ json = { ' prettierd' , ' prettier' , stop_after_first = true },
815
+ yaml = { ' prettierd' , ' prettier' , stop_after_first = true },
810
816
},
811
817
},
812
818
},
@@ -998,26 +1004,25 @@ require('lazy').setup({
998
1004
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
999
1005
},
1000
1006
{ -- AI Autocomplete
1001
- " supermaven-inc/supermaven-nvim" ,
1007
+ ' supermaven-inc/supermaven-nvim' ,
1002
1008
opts = {
1003
1009
keymaps = {
1004
- accept_suggestion = " <Tab>" ,
1005
- accept_word = " <C-Enter>" ,
1010
+ accept_suggestion = ' <Tab>' ,
1011
+ accept_word = ' <C-Enter>' ,
1006
1012
},
1007
1013
},
1008
1014
},
1009
1015
1010
-
1011
1016
{
1012
1017
' akinsho/toggleterm.nvim' ,
1013
- version = " * " ,
1018
+ version = ' * ' ,
1014
1019
opts = {
1015
- open_mapping = " <leader>tt" ,
1020
+ open_mapping = ' <leader>tt' ,
1016
1021
direction = ' horizontal' ,
1017
1022
size = function (term )
1018
- if term .direction == " horizontal" then
1023
+ if term .direction == ' horizontal' then
1019
1024
return vim .o .lines * 0.4
1020
- elseif term .direction == " vertical" then
1025
+ elseif term .direction == ' vertical' then
1021
1026
return vim .o .columns * 0.4
1022
1027
end
1023
1028
end ,
0 commit comments