all repos — dotfiles @ 5cba583f93d4af60d2f763e5d3790ec452684bf2

linux dotfiles

nvim: add cmp-tmux
Prithu Goswami pg@prithu.dev
Thu, 19 Dec 2024 01:51:52 +0530
commit

5cba583f93d4af60d2f763e5d3790ec452684bf2

parent

ad26f7b39dc11e0239f2e116bdc4093d840e50ba

2 files changed, 5 insertions(+), 2 deletions(-)

jump to
M config/nvim/init.luaconfig/nvim/init.lua

@@ -88,7 +88,7 @@ severity_sort = true,

float = { focusable = false, style = 'minimal', - border = 'none', + border = 'single', -- max_width = 80, source = 'always', header = '',

@@ -317,7 +317,6 @@ -- certain features of an LSP (for example, turning off formatting for tsserver)

server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {}) if server_name == 'terraformls' then local root_pattern = require('lspconfig.util').root_pattern - print('Got terraformls', server_name) require('lspconfig')[server_name].setup {} -- require('lspconfig')[server_name].setup { root_dir = root_pattern '.terraformls_root' } else

@@ -388,6 +387,7 @@ -- nvim-cmp does not ship with all sources by default. They are split

-- into multiple repos for maintenance purposes. 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-path', + 'andersevenrud/cmp-tmux', }, config = function() -- See `:help cmp`

@@ -476,6 +476,7 @@ nvim_lsp = '[LSP]',

luasnip = '[Snippet]', buffer = '[Buffer]', path = '[Path]', + tmux = '[Tmux]', })[entry.source.name] return vim_item end,

@@ -483,6 +484,7 @@ },

sources = { { name = 'lazydev', group_index = 0 }, { name = 'nvim_lsp' }, + { name = 'tmux', option = { all_panes = true } }, { name = 'luasnip' }, { name = 'buffer' }, { name = 'path' },
M config/nvim/lazy-lock.jsonconfig/nvim/lazy-lock.json

@@ -5,6 +5,7 @@ "LuaSnip": { "branch": "master", "commit": "33b06d72d220aa56a7ce80a0dd6f06c70cd82b9d" },

"avante.nvim": { "branch": "main", "commit": "9e0b5bf8f13fa7f260932d350685bc379dc4098c" }, "cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, + "cmp-tmux": { "branch": "main", "commit": "95b1b921802e6f60627b3e76afb9380fddd87f9a" }, "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, "conform.nvim": { "branch": "master", "commit": "f4e8837878fc5712d053ba3091a73d27d96a09e2" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },