Skip to content

Commit f79441d

Browse files
author
ekiourk
committed
Adds nvim-tree, pyright, treesitter parser for python and some other small changes
1 parent 313a988 commit f79441d

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

init.lua

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ vim.opt.scrolloff = 10
164164
-- See `:help hlsearch`
165165
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
166166

167+
-- Add keymap for NvimTree
168+
vim.keymap.set('n', '<C-n>', '<cmd>NvimTreeToggle<CR>', { desc = 'Toggle file explorer' })
169+
167170
-- Diagnostic keymaps
168171
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
169172

@@ -617,7 +620,7 @@ require('lazy').setup({
617620
local servers = {
618621
-- clangd = {},
619622
-- gopls = {},
620-
-- pyright = {},
623+
pyright = {},
621624
-- rust_analyzer = {},
622625
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
623626
--
@@ -829,6 +832,7 @@ require('lazy').setup({
829832
{ name = 'nvim_lsp' },
830833
{ name = 'luasnip' },
831834
{ name = 'path' },
835+
{ name = 'buffer' },
832836
},
833837
}
834838
end,
@@ -898,7 +902,7 @@ require('lazy').setup({
898902
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
899903
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
900904
opts = {
901-
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
905+
ensure_installed = { 'bash', 'c', 'diff', 'html', 'python', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
902906
-- Autoinstall languages that are not installed
903907
auto_install = true,
904908
highlight = {
@@ -944,6 +948,17 @@ require('lazy').setup({
944948
-- Or use telescope!
945949
-- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
946950
-- you can continue same window with `<space>sr` which resumes last telescope search
951+
952+
-- Add nvim-tree for file exploring
953+
{
954+
'nvim-tree/nvim-tree.lua',
955+
dependencies = {
956+
'nvim-tree/nvim-web-devicons', -- Optional, for icons (if you have Nerd Font)
957+
},
958+
config = function()
959+
require('nvim-tree').setup {} -- Basic setup
960+
end,
961+
},
947962
}, {
948963
ui = {
949964
-- If you are using a Nerd Font: set icons to an empty table which will use the

lazy-lock.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
3+
"cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" },
4+
"cmp-path": { "branch": "main", "commit": "c6635aae33a50d6010bf1aa756ac2398a2d54c32" },
5+
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
6+
"conform.nvim": { "branch": "master", "commit": "eebc724d12c5579d733d1f801386e0ceb909d001" },
7+
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
8+
"gitsigns.nvim": { "branch": "main", "commit": "17ab794b6fce6fce768430ebc925347e349e1d60" },
9+
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
10+
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
11+
"luvit-meta": { "branch": "main", "commit": "1df30b60b1b4aecfebc785aa98943db6c6989716" },
12+
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
13+
"mason-tool-installer.nvim": { "branch": "main", "commit": "1255518cb067e038a4755f5cb3e980f79b6ab89c" },
14+
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
15+
"mini.nvim": { "branch": "main", "commit": "e744b5dbb3158242af77124bd6763a8647ea82ed" },
16+
"nvim-cmp": { "branch": "main", "commit": "059e89495b3ec09395262f16b1ad441a38081d04" },
17+
"nvim-lspconfig": { "branch": "master", "commit": "d3ad666b7895f958d088cceb6f6c199672c404fe" },
18+
"nvim-tree.lua": { "branch": "master", "commit": "c3c193594213c5e2f89ec5d7729cad805f76b256" },
19+
"nvim-treesitter": { "branch": "master", "commit": "205faba1768a6e4c854f156bc6a21a41b242599c" },
20+
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
21+
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
22+
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
23+
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
24+
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
25+
"tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" },
26+
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
27+
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
28+
}

0 commit comments

Comments
 (0)