Updating neovim configuration

This commit is contained in:
araison 2024-01-14 00:19:31 +01:00
parent 8459e26e3f
commit caa5c24146
9 changed files with 123 additions and 127 deletions

View File

@ -1,5 +1,5 @@
return { return {
'windwp/nvim-autopairs', "windwp/nvim-autopairs",
event = "InsertEnter", event = "InsertEnter",
opts = {} -- this is equalent to setup({}) function opts = {}, -- this is equalent to setup({}) function
} }

View File

@ -1,8 +1,7 @@
return { return {
'nvim-lualine/lualine.nvim', "nvim-lualine/lualine.nvim",
dependencies = { 'nvim-tree/nvim-web-devicons' }, dependencies = { "nvim-tree/nvim-web-devicons" },
config = function() config = function()
require('lualine').setup() require("lualine").setup()
end end,
} }

View File

@ -7,8 +7,6 @@ return {
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
}, },
config = function() config = function()
vim.keymap.set("n", '<leader>n',":Neotree toggle<CR>",{}) vim.keymap.set("n", "<leader>n", ":Neotree toggle<CR>", {})
end end,
} }

View File

@ -1,9 +1,10 @@
return { return {
'nvim-telescope/telescope.nvim', tag = '0.1.5', "nvim-telescope/telescope.nvim",
dependencies = { 'nvim-lua/plenary.nvim' }, tag = "0.1.5",
dependencies = { "nvim-lua/plenary.nvim" },
config = function() config = function()
local builtin = require("telescope.builtin") local builtin = require("telescope.builtin")
vim.keymap.set("n", '<C-p>',builtin.find_files,{}) vim.keymap.set("n", "<C-p>", builtin.find_files, {})
vim.keymap.set("n", '<leader>fg',builtin.live_grep,{}) vim.keymap.set("n", "<leader>fg", builtin.live_grep, {})
end end,
} }

View File

@ -1,9 +1,9 @@
return { return {
"lervag/vimtex", "lervag/vimtex",
config = function() config = function()
vim.g.vimtex_view_general_viewer = 'zathura' vim.g.vimtex_view_general_viewer = "zathura"
vim.g.vimtex_view_automatic = 1 vim.g.vimtex_view_automatic = 1
vim.keymap.set('n','<leader>ll',':VimtexCompile<CR>') vim.keymap.set("n", "<leader>ll", ":VimtexCompile<CR>")
vim.keymap.set('n','<leader>lv',':VimtexView<CR>') vim.keymap.set("n", "<leader>lv", ":VimtexView<CR>")
end end,
} }

View File

@ -3,5 +3,3 @@ vim.cmd("set tabstop=2")
vim.cmd("set softtabstop=2") vim.cmd("set softtabstop=2")
vim.cmd("set shiftwidth=2") vim.cmd("set shiftwidth=2")
vim.g.mapleader = " " vim.g.mapleader = " "