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 {
'windwp/nvim-autopairs',
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {} -- this is equalent to setup({}) function
opts = {}, -- this is equalent to setup({}) function
}

View File

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

View File

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

View File

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

View File

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

View File

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