aboutsummaryrefslogtreecommitdiff
path: root/config/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'config/nvim')
-rw-r--r--config/nvim/init.vim9
-rw-r--r--config/nvim/lua/plugins.lua53
2 files changed, 14 insertions, 48 deletions
diff --git a/config/nvim/init.vim b/config/nvim/init.vim
index b18a009..c269b77 100644
--- a/config/nvim/init.vim
+++ b/config/nvim/init.vim
@@ -99,6 +99,9 @@ nnoremap <c-c><CR> :Explore<cr>
nnoremap <c-c>l :bnext<cr>
nnoremap <c-c>h :bprev<cr>
+" Table mode
+let g:table_mode_syntax = 0
+
" Format
nmap <leader>f :lua require("conform").format()<cr>
@@ -108,10 +111,6 @@ highlight GitGutterAdd ctermfg=2
highlight GitGutterChange ctermfg=3
highlight GitGutterDelete ctermfg=1
-" Setup table-mode to markdown compliant
-" Note: to start use "\ t m"
-let g:table_mode_corner='|'
-
" Spell checking
map <F10> :setlocal spell!<cr>
function LangToggle()
@@ -138,6 +137,8 @@ let g:UltiSnipsJumpBackwardTrigger='<c-k>'
nnoremap <c-c><c-c> :Telescope buffers<cr>
nnoremap <c-p> :lua require('mytelescopefiles')()<cr>
nnoremap <c-s-p> :Telescope lsp_document_symbols<cr>
+nnoremap <c-s-g> :Telescope live_grep<cr>
+nnoremap <c-s-8> :Telescope grep_string<cr>
nmap <leader>] :Telescope lsp_definitions<cr>
nmap <leader><leader>] :Telescope lsp_type_definitions<cr>
nmap <leader>[ :Telescope lsp_implementations<cr>
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua
index f323106..d1a4c55 100644
--- a/config/nvim/lua/plugins.lua
+++ b/config/nvim/lua/plugins.lua
@@ -4,47 +4,12 @@ if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.cmd([[packadd packer.nvim]])
end
-local treesitter_formaters = {
- "c",
- "lua",
- "kconfig",
- "make",
- "markdown",
- "markdown_inline",
- "meson",
- "ninja",
- "ini",
- "gitcommit",
- "git_rebase",
- "git_config",
- "nix",
- "python",
- "toml",
- "vim",
- "vimdoc",
- "yaml",
- "xml",
-}
-
require("packer").startup(function(use)
use("wbthomason/packer.nvim")
-- Visual ------------------------------------------------------------------
use("shaunsingh/nord.nvim")
use("MunifTanjim/nui.nvim")
use({
- "nvim-treesitter/nvim-treesitter",
- run = ":TSUpdate",
- config = function()
- require("nvim-treesitter.configs").setup({
- ensure_installed = treesitter_formaters,
- highlight = {
- enable = true,
- additional_vim_regex_highlighting = false,
- },
- })
- end,
- })
- use({
"lukas-reineke/indent-blankline.nvim",
config = function()
local highlight = { "CursorColumn", "Whitespace" }
@@ -162,9 +127,9 @@ require("packer").startup(function(use)
-- Additional integrations -------------------------------------------------
use({
"chomosuke/typst-preview.nvim",
- tag = "v0.1.*",
- run = function()
- require("typst-preview").update()
+ tag = "v1.*",
+ config = function()
+ require("typst-preview").setup({})
end,
})
-- Movement, format and others ---------------------------------------------
@@ -178,10 +143,10 @@ require("packer").startup(function(use)
use("aliou/bats.vim")
-- LSP ---------------------------------------------------------------------
- local lspconfig = require("lspconfig")
- lspconfig.bashls.setup({})
- lspconfig.clangd.setup({})
- lspconfig.nil_ls.setup({})
- lspconfig.pylsp.setup({})
- lspconfig.tinymist.setup({})
+ vim.lsp.enable("bashls")
+ vim.lsp.enable("clangd")
+ vim.lsp.enable("nil_ls")
+ vim.lsp.enable("pylsp")
+ vim.lsp.enable("tinymist")
+ vim.lsp.enable("guile_ls")
end)