fix: init.lua
This commit is contained in:
parent
ab373fb15b
commit
104a2849db
@ -31,10 +31,9 @@ paq:setup({verbose=true}) {
|
|||||||
{url="git@github.com:akinsho/nvim-toggleterm.lua"}
|
{url="git@github.com:akinsho/nvim-toggleterm.lua"}
|
||||||
}
|
}
|
||||||
|
|
||||||
local status = pcall(require, "material");
|
if u.has_plugin("nvim-treesiter") then
|
||||||
if not(status) then
|
|
||||||
paq.install();
|
paq.install();
|
||||||
end
|
else
|
||||||
|
|
||||||
-- Global options
|
-- Global options
|
||||||
o.number = true
|
o.number = true
|
||||||
@ -66,7 +65,7 @@ g.mapleader = " "
|
|||||||
require "keymappings"
|
require "keymappings"
|
||||||
|
|
||||||
-- Treesitter config
|
-- Treesitter config
|
||||||
require "nvim-treesitter.configs".setup {ensure_installed = {"bash", "svelte", "css", "svelte", "typescript", "javascript", "xml", "go", "lua", "yaml"} highlight = {enable = true}}
|
require "nvim-treesitter.configs".setup {ensure_installed = {"bash", "svelte", "css", "svelte", "typescript", "javascript", "go", "lua", "yaml"}, highlight = {enable = true}}
|
||||||
-- Toggleterm / Lazygit setup
|
-- Toggleterm / Lazygit setup
|
||||||
require "lazy-git"
|
require "lazy-git"
|
||||||
-- Autocommands
|
-- Autocommands
|
||||||
@ -91,3 +90,4 @@ opt.shortmess:append({c = true})
|
|||||||
-- Autoformat
|
-- Autoformat
|
||||||
require "autoformatter"
|
require "autoformatter"
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user