diff --git a/nvim/init.lua b/nvim/init.lua old mode 100755 new mode 100644 index b98a6e4..0ca69ce --- a/nvim/init.lua +++ b/nvim/init.lua @@ -1,43 +1,39 @@ local paq = require "paq" { - 'ctrlpvim/ctrlp.vim', 'dense-analysis/ale', - 'echasnovski/mini.nvim', 'dracula/vim', + 'ibhagwan/fzf-lua', 'kaarmu/typst.vim', - 'lervag/vimtex', 'lewis6991/gitsigns.nvim', 'lukas-reineke/indent-blankline.nvim', - 'luukvbaal/nnn.nvim', 'neovim/nvim-lspconfig', + 'nmac427/guess-indent.nvim', 'nvim-lua/plenary.nvim', 'nvimtools/none-ls.nvim', 'stevearc/aerial.nvim', - 'tpope/vim-sleuth', + 'vim-airline/vim-airline', { 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate' }, 'gbprod/none-ls-shellcheck.nvim', - "L3MON4D3/LuaSnip"; - "hrsh7th/cmp-buffer"; - "hrsh7th/cmp-cmdline"; - "hrsh7th/cmp-nvim-lsp"; - "hrsh7th/cmp-nvim-lsp-signature-help"; - "hrsh7th/cmp-path"; - "hrsh7th/nvim-cmp"; + "L3MON4D3/LuaSnip", + "hrsh7th/cmp-buffer", + "hrsh7th/cmp-cmdline", + "hrsh7th/cmp-nvim-lsp", + "hrsh7th/cmp-nvim-lsp-signature-help", + "hrsh7th/cmp-path", + "hrsh7th/nvim-cmp", - --'tpope/vim-sensible', - --'https://sr.ht/~ackyshake/VimCompletesMe.vim', 'williamboman/mason-lspconfig.nvim', { 'williamboman/mason.nvim', build = ':MasonUpdate' }, } require("aerial").setup() +require('guess-indent').setup() require("gitsigns").setup() require("ibl").setup() require("mason").setup() require("mason-lspconfig").setup() -require("nnn").setup() require("nvim-treesitter.configs").setup({highlight = {enable = true}}) local null_ls = require("null-ls") @@ -119,6 +115,12 @@ vim.keymap.set('n', 'f', function() vim.lsp.buf.code_action() end) vim.keymap.set('n', 'h', function() vim.lsp.buf.hover() end) vim.keymap.set('n', 'r', function() vim.lsp.buf.rename() end) +vim.keymap.set("n", "", require('fzf-lua').files) +vim.keymap.set("n", "\\", require('fzf-lua').buffers) +vim.keymap.set("n", "k", require('fzf-lua').builtin) +vim.keymap.set("n", "l", require('fzf-lua').live_grep_glob) +vim.keymap.set("n", "g", require('fzf-lua').grep_project) + vim.cmd [[ colorscheme dracula command Q q! diff --git a/nvim/lua/arista.lua b/nvim/lua/arista.lua new file mode 100644 index 0000000..35cd0ba --- /dev/null +++ b/nvim/lua/arista.lua @@ -0,0 +1,21 @@ +vim.filetype.add({ + extension = { + qb = 'python', + tac = 'tac', + tin = 'cpp', + itin = 'cpp', + } +}) +vim.api.nvim_create_autocmd('FileType', { + pattern = 'tac', + callback = function(args) + vim.lsp.start({ + cmd = {'/usr/bin/artaclsp'}, + cmd_args = {'-I', '/bld/'}, + name = 'tacc', + root_dir = '/src', + }) + vim.treesitter.language.add("tac", { path = "/usr/lib64/libtree-sitter-tac.so" }) + vim.treesitter.start() + end, +}) diff --git a/qutebrowser/arista.py b/qutebrowser/arista.py index 657c1cf..0ceb455 100644 --- a/qutebrowser/arista.py +++ b/qutebrowser/arista.py @@ -1,6 +1,7 @@ c.url.searchengines['aid'] = 'http://aid/{}' c.url.searchengines['go'] = 'http://go/{}' c.url.searchengines['group'] = 'http://groups/{}' +c.url.searchengines['tacnav'] = 'tacnav.infra.corp.arista.io/tacnav?version=eos-trunk&targets={}' config.bind('A', ':cmd-set-text -s :open -t aid') config.bind('a', ':cmd-set-text -s :open aid')