From 45464380bc1a489fb92e53798081c42b9abb6628 Mon Sep 17 00:00:00 2001 From: Ian Griffin Date: Thu, 27 Oct 2022 15:20:21 +0800 Subject: few small fixes --- lua/ide.lua | 53 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 18 deletions(-) (limited to 'lua/ide.lua') diff --git a/lua/ide.lua b/lua/ide.lua index ff5a62d..a887747 100644 --- a/lua/ide.lua +++ b/lua/ide.lua @@ -4,12 +4,11 @@ -- Load required tools local pk_use = require 'packer'.use -local ct = require 'conftool' - -- -- Tree Sitter -- +--[[ pk_use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate', @@ -37,6 +36,7 @@ pk_use { } end } +]]-- -- -- Autocompletion @@ -45,7 +45,7 @@ pk_use { 'ms-jpq/coq_nvim', branch = 'coq', config = function() - vim.cmd([[autocmd VimEnter * COQnow]]) + vim.cmd([[autocmd VimEnter * COQnow -s]]) end } pk_use { @@ -66,17 +66,8 @@ pk_use { 'fatih/vim-go', ft = 'go' } -pk_use { - 'lervag/vimtex', - ft = 'tex', - config = function() - local defs = require 'defaults' - vim.g.vimtex_view_general_viewer = defs.external_pdfviewer - vim.g.vimtex_compiler_latexmk_engines = { _ = '-xelatex'} - vim.g.vimtex_compiler_progname = 'nvim' - end -} +pk_use 'udalov/kotlin-vim' -- -- Language Server @@ -85,6 +76,14 @@ pk_use { -- Basic commands pk_use 'nanotee/nvim-lsp-basics' +-- Show Code Outline/Symbols tree window +pk_use { + 'stevearc/aerial.nvim', + config = function() + require('aerial').setup() + end +} + -- Language Server Installer pk_use { 'williamboman/mason.nvim', @@ -96,7 +95,8 @@ pk_use { 'williamboman/mason-lspconfig.nvim', requires = { 'williamboman/mason.nvim', - 'ms-jpq/coq_nvim' + 'ms-jpq/coq_nvim', + 'stevearc/aerial.nvim' }, config = function() local masonlsp = require 'mason-lspconfig' @@ -114,6 +114,7 @@ pk_use { local basics = require('lsp_basics') basics.make_lsp_commands(client, bufnr) basics.make_lsp_mappings(client, bufnr) + require('aerial').on_attach(client, bufnr) end }) end @@ -121,15 +122,20 @@ pk_use { end } -pk_use {'neovim/nvim-lspconfig'} +pk_use { + 'neovim/nvim-lspconfig', + config = function() + -- disable inline error messages + vim.diagnostic.config({virtual_text = false}) + end +} --- -- Show code diagnostics in a separate buffer window --- pk_use { 'folke/trouble.nvim', config = function() require('trouble').setup { + height = 5, icons = false, fold_open = "v", fold_closed = ">", @@ -147,8 +153,19 @@ pk_use { } -- --- Debugger Adapter Protocol +-- Latex Live Preview -- +pk_use { + 'xuhdev/vim-latex-live-preview', + ft = 'tex', + setup = function() + vim.g.livepreview_previewer = require('defs').external_pdfviewer + vim.g.livepreview_engine = "xelatex" + end +} + + +-- Debugger Adapter Protocol --[[ pk_use { 'mfussenegger/nvim-dap', -- cgit v1.3