2023-06-06 18:53:32 +00:00
|
|
|
require('plugins')
|
|
|
|
|
|
|
|
-- comma as leader
|
|
|
|
vim.g.mapleader = ","
|
|
|
|
|
|
|
|
-- load legacy options
|
|
|
|
vim.cmd([[
|
|
|
|
so ~/.config/nvim/legacy.vim
|
|
|
|
]])
|
|
|
|
|
|
|
|
require('completion')
|
|
|
|
require('lsp-setup')
|
|
|
|
|
|
|
|
-- nvim-treesitter
|
|
|
|
require('nvim-treesitter.configs').setup {
|
|
|
|
ensure_installed = {
|
|
|
|
"c", "lua", "vim", "help", "query",
|
|
|
|
"gitattributes", "gitcommit", "gitignore",
|
|
|
|
"json", "markdown", "yaml", "toml",
|
|
|
|
"make", "nix", "bash",
|
|
|
|
"php", "html", "css",
|
|
|
|
"python", "rust",
|
|
|
|
},
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
-- lualine theme
|
|
|
|
require('lualine').setup {
|
|
|
|
options = {
|
|
|
|
theme = 'gruvbox',
|
|
|
|
-- no separators between lualine elements
|
|
|
|
section_separators = '',
|
|
|
|
component_separators = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-06 19:10:05 +00:00
|
|
|
-- to disable the default netrw file browser
|
|
|
|
-- vim.g.loaded_netrw = 1
|
|
|
|
-- vim.g.loaded_netrwPlugin = 1
|
|
|
|
|
2023-06-06 18:53:32 +00:00
|
|
|
vim.opt.termguicolors = true
|
|
|
|
require("bufferline").setup{}
|
|
|
|
|
|
|
|
-- settings for neovide
|
|
|
|
if vim.g.neovide then
|
|
|
|
vim.o.guifont = "Iosevka Term Medium:h12"
|
|
|
|
end
|