lvim.plugins = {
{"lunarvim/colorschemes"},
{"potamides/pantran.nvim"},
{"cbochs/grapple.nvim"},
{"nikvdp/neomux"},
{"mhinz/neovim-remote"},
{"ggandor/leap.nvim"},
{"declancm/cinnamon.nvim",
require('cinnamon').setup()
},
{"petertriho/nvim-scrollbar",
require("scrollbar").setup()
},
{"tmillr/sos.nvim",
require("sos").setup()
},
{"haringsrob/nvim_context_vt"},
{"MunifTanjim/prettier.nvim"},
{"mechatroner/rainbow_csv"},
{"simrat39/symbols-outline.nvim"},
{"tibabit/vim-templates"},
{"SirVer/ultisnips"},
{"honza/vim-snippets"},
{"tpope/vim-surround"},
{"NvChad/nvim-colorizer.lua",
require("colorizer").setup()
},
{'stevearc/overseer.nvim'},
{'dracula/vim'},
{'frabjous/knap'},
{'vim-scripts/fpc.vim'},
{'kovetskiy/sxhkd-vim'},
}
vim.g.tmpl_author_name = 'Saulo José (ApplBoy)'
vim.g.tmpl_author_email = '???'
vim.g.tmpl_search_paths = {'~/Modelos/NeoVim/'}
local gknapsettings = {
texoutputext = "pdf",
textopdf = "xelatex -synctex=1 -halt-on-error -interaction=batchmode %docroot%",
textopdfviewerlaunch = "zathura %outputfile%",
textopdfviewerrefresh = "kill -HUP %pid%"
}
vim.g.knap_settings = gknapsettings
local kmap = vim.keymap.set
kmap({ 'n', 'v' },'<Space>tp', function() require("knap").process_once() end)
kmap({ 'n', 'v' },'<Space>tq', function() require("knap").close_viewer() end)
-- vim.opt.spell = true
-- Enable automatic spelling for specific file types
vim.cmd([[
augroup SpellCheck
autocmd!
autocmd FileType markdown,asciidoc,gemtext,text,nvim,c lua vim.opt.spell = true
augroup end
]])
vim.cmd("autocmd BufRead,BufNewFile *.psc set filetype=pascal")
vim.cmd("autocmd BufRead,BufNewFile *.psc set syntax=pascal")
-- vim.cmd([[autocmd VimEnter * set nocul]])
-- vim.cmd([[autocmd InsertEnter,InsertLeave * set cul!]])
vim.opt.spelllang = { "pt_br", "en" }
vim.opt.colorcolumn = "80"
vim.o.foldmethod = "marker"
lvim.autocommands = {
{
{ "ColorScheme" },
{
pattern = "*",
callback = function()
vim.api.nvim_set_hl(0, "ColorColumn", { bg='#424450', ctermbg='magenta' })
end,
}
},
-- other autocmds
}
-- lvim.colorscheme = "aurora"
-- lvim.colorscheme = "ferrum"
lvim.colorscheme = "dracula"
term_type = os.getenv("TERM")
if term_type == "st-256color" or term_type == "alacritty" then
-- print("The term is running on st.")
lvim.transparent_window = true
end
-- lvim.keys.normal_mode["<C-z>"] = "<nop>"
lvim.keys.normal_mode["<C-z>"] = "u"
lvim.keys.normal_mode["<A-v>"] = ":vsplit<CR>"
lvim.keys.normal_mode["<A-h>"] = ":split<CR>"
lvim.keys.normal_mode["<C-b>"] = ":terminal<CR>"
lvim.keys.normal_mode["<Tab>"] = ":BufferLineCycleNext<CR>"
lvim.keys.normal_mode["<S-Tab>"] = ":BufferLineCyclePrev<CR>"
lvim.keys.normal_mode["x"] = "\"_x"
lvim.keys.insert_mode["<C-D>"] = "<C-r>=strftime('%d/%m/%y')<CR>"
-- statusline
local components = require("lvim.core.lualine.components")
lvim.builtin.lualine.sections.lualine_a = { "mode" }