Add several small additions
This commit is contained in:
parent
e3a049e2ec
commit
b92cdd6031
27
init.lua
27
init.lua
|
@ -163,6 +163,10 @@ vim.o.shiftwidth = 2
|
|||
vim.o.expandtab = true
|
||||
vim.o.softtabstop = 2
|
||||
|
||||
-- Отображать строку без переносов, как одну бесконечно длинную
|
||||
-- (display lines as one long line)
|
||||
-- vim.opt.wrap = false
|
||||
|
||||
-- [[ Basic Keymaps ]]
|
||||
-- See `:help vim.keymap.set()`
|
||||
|
||||
|
@ -296,6 +300,7 @@ require('lazy').setup({
|
|||
{ '<leader>w', group = '[W]orkspace' },
|
||||
{ '<leader>t', group = '[T]oggle' },
|
||||
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
|
||||
{ '<leader>l', group = '[L]aTeX' },
|
||||
}
|
||||
end,
|
||||
},
|
||||
|
@ -426,8 +431,9 @@ require('lazy').setup({
|
|||
},
|
||||
},
|
||||
{ 'Bilal2453/luvit-meta', lazy = true },
|
||||
|
||||
-- Main LSP Configuration
|
||||
{
|
||||
-- Main LSP Configuration
|
||||
'neovim/nvim-lspconfig',
|
||||
dependencies = {
|
||||
-- Automatically install LSPs and related tools to stdpath for Neovim
|
||||
|
@ -579,8 +585,13 @@ require('lazy').setup({
|
|||
-- - settings (table): Override the default settings passed when initializing the server.
|
||||
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||
local servers = {
|
||||
-- C/C++ LSP server
|
||||
clangd = {},
|
||||
|
||||
-- LaTeX LSP server
|
||||
texlab = {},
|
||||
|
||||
-- Python LSP server
|
||||
pyright = {
|
||||
settings = {
|
||||
python = {
|
||||
|
@ -844,6 +855,11 @@ require('lazy').setup({
|
|||
{ name = 'nvim_lsp' },
|
||||
{ name = 'luasnip' },
|
||||
{ name = 'path' },
|
||||
{ name = 'buffer' },
|
||||
},
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
-- documentation = cmp.config.window.bordered(),
|
||||
},
|
||||
}
|
||||
end,
|
||||
|
@ -868,7 +884,12 @@ require('lazy').setup({
|
|||
},
|
||||
|
||||
-- Highlight todo, notes, etc in comments
|
||||
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
|
||||
{
|
||||
'folke/todo-comments.nvim',
|
||||
event = 'VimEnter',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
opts = { signs = false },
|
||||
},
|
||||
|
||||
{ -- Collection of various small independent plugins/modules
|
||||
'echasnovski/mini.nvim',
|
||||
|
@ -959,7 +980,7 @@ require('lazy').setup({
|
|||
--
|
||||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
|
||||
-- { import = 'custom.plugins' },
|
||||
{ import = 'custom.plugins' },
|
||||
}, {
|
||||
ui = {
|
||||
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
||||
|
|
Loading…
Reference in New Issue