Stuff
This commit is contained in:
@@ -75,6 +75,7 @@ vim.opt.softtabstop = 4
|
|||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
-- Automatically indent code
|
-- Automatically indent code
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
|
vim.opt.autoindent = true
|
||||||
|
|
||||||
-- Save the file when switching buffers
|
-- Save the file when switching buffers
|
||||||
vim.opt.autowriteall = true
|
vim.opt.autowriteall = true
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
-- Filesystem manager
|
-- Filesystem manager
|
||||||
-- require('helpers').edit_cf('po', '/lua/plugins/oil.lua')
|
-- require('helpers').edit_cf('po', '/lua/plugins/oil.lua')
|
||||||
--
|
--
|
||||||
-- vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
|
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'stevearc/oil.nvim',
|
'stevearc/oil.nvim',
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ return {
|
|||||||
'vimdoc',
|
'vimdoc',
|
||||||
'php',
|
'php',
|
||||||
'yaml',
|
'yaml',
|
||||||
|
'vue',
|
||||||
|
'javascript',
|
||||||
|
'typescript',
|
||||||
|
'css',
|
||||||
}
|
}
|
||||||
require('nvim-treesitter').install(langs)
|
require('nvim-treesitter').install(langs)
|
||||||
|
|
||||||
@@ -26,6 +30,7 @@ return {
|
|||||||
pattern = langs,
|
pattern = langs,
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.treesitter.start()
|
vim.treesitter.start()
|
||||||
|
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -8,12 +8,6 @@ return {
|
|||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
-- 👇 in this section, choose your own keymappings!
|
-- 👇 in this section, choose your own keymappings!
|
||||||
{
|
|
||||||
'-',
|
|
||||||
mode = { 'n', 'v' },
|
|
||||||
'<cmd>Yazi<cr>',
|
|
||||||
desc = 'Open yazi at the current file',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
-- Open in the current working directory
|
-- Open in the current working directory
|
||||||
'\\',
|
'\\',
|
||||||
|
|||||||
Reference in New Issue
Block a user