mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-21 14:22:45 +00:00
nvim: plugin update and arista config
This commit is contained in:
parent
dfe535907a
commit
7a33f8f5d6
32
nvim/init.lua
Executable file → Normal file
32
nvim/init.lua
Executable file → Normal file
|
@ -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', '<leader>f', function() vim.lsp.buf.code_action() end)
|
|||
vim.keymap.set('n', '<leader>h', function() vim.lsp.buf.hover() end)
|
||||
vim.keymap.set('n', '<leader>r', function() vim.lsp.buf.rename() end)
|
||||
|
||||
vim.keymap.set("n", "<C-p>", require('fzf-lua').files)
|
||||
vim.keymap.set("n", "<leader>\\", require('fzf-lua').buffers)
|
||||
vim.keymap.set("n", "<leader>k", require('fzf-lua').builtin)
|
||||
vim.keymap.set("n", "<leader>l", require('fzf-lua').live_grep_glob)
|
||||
vim.keymap.set("n", "<leader>g", require('fzf-lua').grep_project)
|
||||
|
||||
vim.cmd [[
|
||||
colorscheme dracula
|
||||
command Q q!
|
||||
|
|
21
nvim/lua/arista.lua
Normal file
21
nvim/lua/arista.lua
Normal file
|
@ -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,
|
||||
})
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue