From 19bded245ee0685120ea3d2095c0abcdf5c22692 Mon Sep 17 00:00:00 2001 From: Ian Griffin Date: Tue, 25 Mar 2025 23:13:50 +0800 Subject: migrated to lazy.nvim, cleanup and fixes --- lua/ide.lua | 249 ------------------------------------------------------------ 1 file changed, 249 deletions(-) delete mode 100644 lua/ide.lua (limited to 'lua/ide.lua') diff --git a/lua/ide.lua b/lua/ide.lua deleted file mode 100644 index 4a1d252..0000000 --- a/lua/ide.lua +++ /dev/null @@ -1,249 +0,0 @@ --- --- IDE-like features --- - --- Load required tools -local pk_use = require 'packer'.use - --- --- Tree Sitter --- -pk_use { - 'nvim-treesitter/nvim-treesitter', - run = ':TSUpdate', - config = function() - require('nvim-treesitter.configs').setup { - ensure_installed = { - "bash", - "bibtex", - "c", - "cpp", - "css", - "go", - "html", - "http", - "javascript", - "json", - "latex", - "lua", - "python", - "typescript", - "tsx", - "vim", - }, - sync_install = false, - highlight = { - enable = true, - } - } - end -} - --- --- Autocompletion --- -pk_use { - 'ms-jpq/coq_nvim', - branch = 'coq', - config = function() - vim.cmd([[autocmd VimEnter * COQnow -s]]) - end -} - -pk_use { - 'ms-jpq/coq.artifacts', - branch = 'artifacts' -} - --- --- Language Configurations --- -pk_use 'ap/vim-css-color' --- close tags in html languages -pk_use { - 'alvan/closetag.vim', - ft = { "html", "vue", "typescriptreact" } -} - --- pk_use { --- 'fatih/vim-go', --- ft = 'go' --- } - -pk_use { - 'udalov/kotlin-vim', - ft = 'kotlin' -} - -pk_use 'bellinitte/uxntal.vim' - --- --- Language Server --- - --- Basic commands -pk_use 'nanotee/nvim-lsp-basics' - --- Show Code Outline/Symbols tree window -pk_use { - 'stevearc/aerial.nvim', - config = function() - require('conftool').map('n', 'e', ':AerialToggle') - require('aerial').setup({ - backends = { 'lsp', 'markdown', 'man' }, - layout = { - min_width = 25 - } - }) - end -} - --- Language Server Installer -pk_use { - 'williamboman/mason.nvim', - config = function() - require('mason').setup { - ui = { - icons = { - package_installed = "i", - package_pending = "p", - package_uninstalled = "u" - } - } - } - end -} -pk_use { - 'williamboman/mason-lspconfig.nvim', - requires = { - 'neovim/nvim-lspconfig', - 'williamboman/mason.nvim', - 'ms-jpq/coq_nvim', - 'stevearc/aerial.nvim' - }, - config = function() - local masonlsp = require 'mason-lspconfig' - --[[ - masonlsp.setup { - ensure_installed = { - "bashls", - "clangd", - "html", - "jsonls", - "lua_ls", - "pyright", - "texlab", - "tsserver" - }, - } - --]] - masonlsp.setup_handlers { - function(server_name) - require('lspconfig')[server_name].setup(require('coq').lsp_ensure_capabilities { - on_attach = function(client, bufnr) - local basics = require('lsp_basics') - basics.make_lsp_commands(client, bufnr) - basics.make_lsp_mappings(client, bufnr) - end - }) - end - } - end -} - -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 = 6, - icons = false, - fold_open = "v", - fold_closed = ">", - signs = { - error = "E:", - warning = "W:", - hint = "H:", - information = "I:" - }, - use_diagnostic_signs = false - } - - require('conftool').map('n', 't', ':TroubleToggle') - end -} - ---[[ --- 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 -}]] - --- --- Markdown Live Preview --- -pk_use { - "iamcco/markdown-preview.nvim", - ft = 'markdown', - run = function() - vim.fn["mkdp#util#install"]() - end, - config = function() - vim.g.mkdp_theme = 'light' - end -} - --- Debugger Adapter Protocol ---[[ -pk_use { - 'mfussenegger/nvim-dap', - config = function() - local dap = require('dap') - - end -} ---]] - --- --- Misc --- -pk_use { - "rest-nvim/rest.nvim", - requires = { "nvim-lua/plenary.nvim" }, - config = function() - - -- commands - local ct = require('conftool') - ct.defcmd('RestNvim', 'lua require(\'rest-nvim\').run()') - ct.defcmd('RestNvimPreview', 'lua require(\'rest-nvim\').run(true)') - ct.defcmd('RestNvimLast', 'lua require(\'rest-nvim\').last()') - - ct.map('n', 'r', 'RestNvim') - ct.map('n', 'R', 'RestNvimLast') - ct.map('n', '', 'RestNvimPreview') - - require("rest-nvim").setup({ - -- Open request results in a horizontal split - result_split_horizontal = true, - -- Keep the http file buffer above|left when split horizontal|vertical - result_split_in_place = true, - result = { - show_curl_command = false, - } - }) - end -} -- cgit v1.3