Compare commits

..

3 Commits

Author SHA1 Message Date
bf522e0b25
Neovim: Add suda 2026-03-21 23:01:29 +01:00
6db3e9995c
Neovim: Treesitter, indent config 2026-03-21 20:46:29 +01:00
a0af6e0844
Change tab size and tab to spaces in nvim 2026-03-21 19:52:35 +01:00

View File

@ -1,4 +1,8 @@
vim.wo.number = true
vim.opt.number = true
vim.opt.expandtab = true
vim.opt.shiftwidth = 2
vim.opt.softtabstop = 2
vim.opt.tabstop = 2
vim.opt.clipboard:append { 'unnamed', 'unnamedplus' }
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
@ -14,7 +18,7 @@ if vim.fn.executable("git") == 1 then
})
end
vim.opt.rtp:prepend(lazypath)
local opts = {}
local plugins = {
{
@ -29,7 +33,21 @@ if vim.fn.executable("git") == 1 then
dependencies = {"nvim-tree/nvim-web-devicons","lewis6991/gitsigns.nvim"}
},
{
'nvim-telescope/telescope.nvim', version = '*',
dependencies = {
'nvim-lua/plenary.nvim',
}
},
{
'nvim-treesitter/nvim-treesitter',
lazy = false,
build = ':TSUpdate'
},
{
'lambdalisue/vim-suda'
},
--[[
{
"kevinhwang91/nvim-ufo",
@ -39,5 +57,14 @@ if vim.fn.executable("git") == 1 then
}
require("lazy").setup(plugins, opts)
if vim.fn.executable("tree-sitter") == 1 then
require('nvim-treesitter').setup {
-- Directory to install parsers and queries to (prepended to `runtimepath` to have priority)
install_dir = vim.fn.stdpath('data') .. '/site',
highlight = {enable = true},
indent = { enable = true},
}
require('nvim-treesitter').install { 'lua' }
end
vim.cmd [[colorscheme dracula]]
end