From b92cdd60310353f1c2f60e860fb0efd1cfcb13a0 Mon Sep 17 00:00:00 2001 From: Sergey Sychugin <40148988+sychugin@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:41:05 +0300 Subject: [PATCH] Add several small additions --- init.lua | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index f271787e..ef961feb 100644 --- a/init.lua +++ b/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({ { 'w', group = '[W]orkspace' }, { 't', group = '[T]oggle' }, { 'h', group = 'Git [H]unk', mode = { 'n', 'v' } }, + { '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