diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-04-28 23:20:18 +0200 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-04-28 23:20:18 +0200 |
| commit | 690a4cab3d440478eba70b48d073970a579e30b8 (patch) | |
| tree | c75beeea10eea6bde78e028747e82e7b4fdbe8b1 /lua/pml68/configs | |
| parent | feat: add git related things to nvim-treesitter's "ensure_installed" array (diff) | |
| download | nvim-690a4cab3d440478eba70b48d073970a579e30b8.tar.gz | |
style: formatting
Diffstat (limited to 'lua/pml68/configs')
| -rw-r--r-- | lua/pml68/configs/cmp.lua | 14 | ||||
| -rw-r--r-- | lua/pml68/configs/settings/elixirls.lua | 2 | ||||
| -rwxr-xr-x | lua/pml68/configs/settings/rust_analyzer.lua | 2 | ||||
| -rw-r--r-- | lua/pml68/configs/toggleterm.lua | 8 |
4 files changed, 13 insertions, 13 deletions
diff --git a/lua/pml68/configs/cmp.lua b/lua/pml68/configs/cmp.lua index 91d1b5e..bffb09a 100644 --- a/lua/pml68/configs/cmp.lua +++ b/lua/pml68/configs/cmp.lua @@ -2,10 +2,10 @@ local cmp = require("cmp") cmp.setup({ sources = { - {name = 'nvim_lsp'}, - {name = 'path'}, - {name = 'vimtex'}, - {name = 'crates'}, + { name = 'nvim_lsp' }, + { name = 'path' }, + { name = 'vimtex' }, + { name = 'crates' }, }, window = { completion = { @@ -18,9 +18,9 @@ cmp.setup({ completeopt = 'menu,menuone,noinsert' }, mapping = cmp.mapping.preset.insert({ - ['<CR>'] = cmp.mapping.confirm({select = true}), - ['<S-Tab>'] = cmp.mapping.select_prev_item({behavior = 'select'}), - ['<Tab>'] = cmp.mapping.select_next_item({behavior = 'select'}), + ['<CR>'] = cmp.mapping.confirm({ select = true }), + ['<S-Tab>'] = cmp.mapping.select_prev_item({ behavior = 'select' }), + ['<Tab>'] = cmp.mapping.select_next_item({ behavior = 'select' }), }), snippet = { expand = function(args) diff --git a/lua/pml68/configs/settings/elixirls.lua b/lua/pml68/configs/settings/elixirls.lua index c724eea..721ef5e 100644 --- a/lua/pml68/configs/settings/elixirls.lua +++ b/lua/pml68/configs/settings/elixirls.lua @@ -1,3 +1,3 @@ return { - cmd = {vim.fn.stdpath("data") .. "/mason/bin/elixir-ls"}, + cmd = { vim.fn.stdpath("data") .. "/mason/bin/elixir-ls" }, } diff --git a/lua/pml68/configs/settings/rust_analyzer.lua b/lua/pml68/configs/settings/rust_analyzer.lua index e89b07f..3222bb7 100755 --- a/lua/pml68/configs/settings/rust_analyzer.lua +++ b/lua/pml68/configs/settings/rust_analyzer.lua @@ -1,5 +1,5 @@ return { - filetypes = {"rust"}, + filetypes = { "rust" }, settings = { ['rust-analyzer'] = { cargo = { diff --git a/lua/pml68/configs/toggleterm.lua b/lua/pml68/configs/toggleterm.lua index 997802b..e2681b5 100644 --- a/lua/pml68/configs/toggleterm.lua +++ b/lua/pml68/configs/toggleterm.lua @@ -1,5 +1,5 @@ -local Terminal = require('toggleterm.terminal').Terminal -local lazygit = Terminal:new({ +local Terminal = require('toggleterm.terminal').Terminal +local lazygit = Terminal:new({ cmd = "lazygit", hidden = true, direction = "float", @@ -12,9 +12,9 @@ function _lazygit_toggle() lazygit:toggle() end -vim.keymap.set("n", "<leader>g", "<cmd> lua _lazygit_toggle() <CR>", {noremap = true, silent = true}) +vim.keymap.set("n", "<leader>g", "<cmd> lua _lazygit_toggle() <CR>", { noremap = true, silent = true }) function _G.set_terminal_keymaps() - local opts = {buffer = 0} + local opts = { buffer = 0 } vim.keymap.set('t', '<C-x>', [[<C-\><C-n>]], opts) vim.keymap.set('t', '<C-h>', [[<Cmd>wincmd h<CR>]], opts) vim.keymap.set('t', '<C-j>', [[<Cmd>wincmd j<CR>]], opts) |
