start integrating vimtex
This commit is contained in:
parent
95fba48b5d
commit
e68609e6e5
|
@ -1,3 +1,2 @@
|
|||
TODO: set nvim-surround, nvim-cmp keybinds separately from plugin setup
|
||||
TODO: completely rework snippets, autocomplete
|
||||
TODO: remove project plugin or start using it
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
local o = vim.opt
|
||||
local g = vim.g
|
||||
|
||||
g.mapleader = " "
|
||||
g.maplocalleader = ","
|
||||
|
||||
o.undodir = vim.fn.stdpath "cache" .. "/undo"
|
||||
o.clipboard = "unnamedplus"
|
||||
o.conceallevel = 0
|
||||
|
@ -37,10 +40,7 @@ o.modeline = true
|
|||
o.modelines = 3
|
||||
o.listchars = "eol:$,tab:>-,trail:~,extends:>,precedes:<"
|
||||
|
||||
g.Illuminate_ftblacklist = { 'alpha' }
|
||||
g.mapleader = ' '
|
||||
|
||||
local icons = require 'config.icons'.list
|
||||
local icons = require('config.icons').list
|
||||
|
||||
local signs = {
|
||||
DiagnosticSignError = icons.BoldError,
|
||||
|
|
|
@ -7,6 +7,15 @@ local plugins = {
|
|||
},
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{ "lewis6991/impatient.nvim" },
|
||||
{ "lervag/vimtex",
|
||||
setup = function()
|
||||
vim.g.vimtex_view_method = "zathura"
|
||||
end,
|
||||
config = function()
|
||||
require('config.keymaps').map("vimtex")
|
||||
end,
|
||||
|
||||
},
|
||||
{ "kylechui/nvim-surround",
|
||||
config = function()
|
||||
require('plugins.nvim-surround')
|
||||
|
|
|
@ -98,7 +98,7 @@ ins_left {
|
|||
|
||||
ins_left {
|
||||
function()
|
||||
local msg = 'No Active Lsp'
|
||||
local msg = 'None Active'
|
||||
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
|
||||
local clients = vim.lsp.get_active_clients()
|
||||
if next(clients) == nil then
|
||||
|
|
|
@ -5,7 +5,7 @@ end
|
|||
|
||||
local icons = require('config.icons').list
|
||||
|
||||
local settings = {
|
||||
mason.setup({
|
||||
ui = {
|
||||
border = "none",
|
||||
icons = {
|
||||
|
@ -16,6 +16,4 @@ local settings = {
|
|||
},
|
||||
log_level = vim.log.levels.INFO,
|
||||
max_concurrent_installers = 4,
|
||||
}
|
||||
|
||||
mason.setup(settings)
|
||||
})
|
||||
|
|
|
@ -11,7 +11,7 @@ local diagnostics = null_ls.builtins.diagnostics
|
|||
-- WARN: If this setup doesn't work it's probably because a different language server with a formatter is taking precedence
|
||||
-- https://github.com/LunarVim/LunarVim/blob/master/lua/lvim/lsp/utils.lua#L172
|
||||
|
||||
null_ls.setup {
|
||||
null_ls.setup({
|
||||
debug = false,
|
||||
sources = {
|
||||
formatting.black.with { extra_args = { "--fast" } },
|
||||
|
@ -19,4 +19,4 @@ null_ls.setup {
|
|||
-- formatting.stylua,
|
||||
-- diagnostics.flake8,
|
||||
},
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue