nvim lazy conf almost finished

This commit is contained in:
Tiago Sousa 2023-11-10 21:15:14 +00:00
parent be07ce0344
commit 5335419073
9 changed files with 126 additions and 186 deletions

View file

@ -1,6 +0,0 @@
require 'colorizer'.setup({
'dosini';
'css';
'javascript';
html = { mode = 'background' };
})

View file

@ -1 +1,4 @@
require("fidget").setup() return {
"j-hui/fidget.nvim",
config = true
}

View file

@ -1,34 +1,7 @@
local present, mason = pcall(require, "mason") return {
"neovim/nvim-lspconfig",
vim.api.nvim_create_augroup("_mason", { clear = true }) dependencies = "williamboman/mason-lspconfig.nvim",
config = function()
local options = {
PATH = "skip",
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = ""
},
keymaps = {
toggle_server_expand = "<CR>",
install_server = "i",
update_server = "u",
check_server_version = "c",
update_all_servers = "U",
check_outdated_servers = "C",
uninstall_server = "X",
cancel_installation = "<C-c>",
},
},
max_concurrent_installers = 10,
}
mason.setup(options)
local mason_lspconfig = require "mason-lspconfig" local mason_lspconfig = require "mason-lspconfig"
mason_lspconfig.setup({ mason_lspconfig.setup({
@ -95,3 +68,5 @@ mason_lspconfig.setup_handlers {
} }
end, end,
} }
end
}

View file

@ -19,8 +19,8 @@ return {
} }
require('orgmode').setup({ require('orgmode').setup({
org_agenda_files = { '~/Nextcloud/Documents/uni/**/*' }, org_agenda_files = { '~/Nextcloud/org/**/*' },
org_default_notes_file = '~/Nextcloud/Documents/uni/refile.org', org_default_notes_file = '~/Nextcloud/org/refile.org',
}) })
end end
} }

View file

@ -1,45 +0,0 @@
return {
"nvim-lualine/lualine.nvim",
config = function()
require('lualine').setup {
options = {
icons_enabled = true,
theme = 'auto',
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = {
statusline = {},
winbar = {},
},
ignore_focus = {},
always_divide_middle = true,
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
}
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'branch', 'diff', 'diagnostics' },
lualine_c = { 'filename' },
lualine_x = { 'encoding', 'fileformat', 'filetype' },
lualine_y = { 'progress' },
lualine_z = { 'location' }
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { 'filename' },
lualine_x = { 'location' },
lualine_y = {},
lualine_z = {}
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {}
}
end
}

View file

@ -1,5 +1,13 @@
return {
"nvim-telescope/telescope.nvim",
dependencies = {
"nvim-lua/plenary.nvim"
},
config = function()
local builtin = require('telescope.builtin') local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>sf', builtin.find_files, {}) vim.keymap.set('n', '<leader>sf', builtin.find_files, {})
vim.keymap.set('n', '<leader>sg', builtin.live_grep, {}) vim.keymap.set('n', '<leader>sg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>sb', builtin.buffers, {}) vim.keymap.set('n', '<leader>sb', builtin.buffers, {})
vim.keymap.set('n', '<leader>sh', builtin.help_tags, {}) vim.keymap.set('n', '<leader>sh', builtin.help_tags, {})
end
}

View file

@ -1,9 +1,11 @@
function ContextSetup(show_all_context) return {
"romgrk/nvim-treesitter-context",
config = function()
require("treesitter-context").setup({ require("treesitter-context").setup({
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
throttle = true, -- Throttles plugin updates (may improve performance) throttle = true, -- Throttles plugin updates (may improve performance)
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit. max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
show_all_context = show_all_context, show_all_context = false,
patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries. patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries.
-- For all filetypes -- For all filetypes
-- Note that setting an entry here replaces all other patterns for this entry. -- Note that setting an entry here replaces all other patterns for this entry.
@ -32,5 +34,4 @@ function ContextSetup(show_all_context)
}, },
}) })
end end
}
ContextSetup(false)

View file

@ -1 +1,7 @@
return {
"mbbill/undotree",
config = function()
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle) vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
end
}

View file

@ -1,2 +0,0 @@
vim.g.vimtex_view_method = 'zathura'
vim.g.vimtex_compiler_methor = 'latexmk'