Skip to content

Commit

Permalink
feat: added navigator plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
danielborne-kmi committed Jul 19, 2023
1 parent 5ed8d46 commit 5aa926b
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 59 deletions.
6 changes: 2 additions & 4 deletions .config/nvim/after/plugin/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ lsp.ensure_installed({
'jsonls',
'html',
'pylsp',
'flake8',
'pylint'
})

lsp.nvim_workspace()
Expand Down Expand Up @@ -43,8 +41,8 @@ lsp.on_attach(function(client, bufnr)
vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, opts)
vim.keymap.set("n", "<leader>vws", function() vim.lsp.buf.workspace_symbol() end, opts)
vim.keymap.set("n", "<leader>vd", function() vim.diagnostic.open_float() end, opts)
vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, opts)
vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, opts)
vim.keymap.set("n", "]d", function() vim.diagnostic.goto_next() end, opts)
vim.keymap.set("n", "[d", function() vim.diagnostic.goto_prev() end, opts)
vim.keymap.set("n", "<leader>vca", function() vim.lsp.buf.code_action() end, opts)
vim.keymap.set("n", "<leader>vrr", function() vim.lsp.buf.references() end, opts)
vim.keymap.set("n", "<leader>vrn", function() vim.lsp.buf.rename() end, opts)
Expand Down
4 changes: 4 additions & 0 deletions .config/nvim/after/plugin/navigator.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require('navigator').setup({
mason = true
})

108 changes: 53 additions & 55 deletions .config/nvim/lua/custom/packer.lua
Original file line number Diff line number Diff line change
@@ -1,58 +1,56 @@
-- This file can be loaded by calling `lua require('plugins')` from your init.vim

-- Only required if you have packer configured as `opt`
vim.cmd.packadd('packer.nvim')
vim.cmd [[packadd packer.nvim]]

return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'

use {
'nvim-telescope/telescope.nvim', tag = '0.1.0',
-- or , branch = '0.1.x',
requires = { {'nvim-lua/plenary.nvim'} }
}

use { "catppuccin/nvim", as = "catppuccin" }
use {
'nvim-treesitter/nvim-treesitter',
run = function()
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
ts_update()
end,}
use("nvim-treesitter/playground")
use("theprimeagen/harpoon")
use("mbbill/undotree")
use("tpope/vim-fugitive")

use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v1.x',
requires = {
-- LSP Support
{'neovim/nvim-lspconfig'},
{'williamboman/mason.nvim'},
{'williamboman/mason-lspconfig.nvim'},

-- Autocompletion
{'hrsh7th/nvim-cmp'},
{'hrsh7th/cmp-buffer'},
{'hrsh7th/cmp-path'},
{'saadparwaiz1/cmp_luasnip'},
{'hrsh7th/cmp-nvim-lsp'},
{'hrsh7th/cmp-nvim-lua'},

-- Snippets
{'L3MON4D3/LuaSnip'},
{'rafamadriz/friendly-snippets'},
}
}

use('christoomey/vim-tmux-navigator')
use {
'numToStr/Comment.nvim',
config = function()
require('Comment').setup()
end
}
--packer manages itself
use 'wbthomason/packer.nvim'
use {
'nvim-telescope/telescope.nvim', tag = '0.1.1',
-- or , branch = '0.1.x',
requires = { { 'nvim-lua/plenary.nvim' } }
}
use { "catppuccin/nvim", as = "catppuccin" }
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
use('nvim-treesitter/playground')
use('theprimeagen/harpoon')
use('mbbill/undotree')
use('tpope/vim-fugitive')
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x',
requires = {
{ 'neovim/nvim-lspconfig' },
{
'williamboman/mason.nvim',
run = function()
pcall(vim.cmd, 'MasonUpdate')
end,
},
{ 'williamboman/mason-lspconfig.nvim' },
-- autocompletion
{ 'hrsh7th/nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lsp' },
{ 'L3MON4D3/LuaSnip' },
}
}
use {
'numToStr/Comment.nvim',
config = function()
require('Comment').setup()
end
}
use('christoomey/vim-tmux-navigator')
-- use('mfussenegger/nvim-jdtls')
use({
"iamcco/markdown-preview.nvim",
run = "cd app && npm install",
setup = function() vim.g.mkdp_filetypes = { "markdown" } end,
ft = { "markdown" },
})
use({
'ray-x/navigator.lua',
requires = {
{ 'ray-x/guihua.lua', run = 'cd lua/fzy && make' },
{ 'neovim/nvim-lspconfig' },
},
})
end)

0 comments on commit 5aa926b

Please sign in to comment.