Skip to content

Commit

Permalink
Update commands for trouble.nvim and glow.nvim.
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonllera committed Jun 25, 2024
1 parent 7c37401 commit 64b9c27
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lua/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ nnoremap("<leader>gl", ":Gclog<CR>")
nnoremap("<leader>i", '<Cmd>lua vim.diagnostic.open_float(0, {scope = "line"})<CR>')

-- Open local diagnostics in local list
nnoremap("<leader>I", "<cmd>TroubleToggle document_diagnostics<cr>")
nnoremap("<leader>I", "<cmd>Trouble diagnostics toggle focus=false filter.buf=0<cr>")

-- Open all project diagnostics in quickfix list
nnoremap("<leader><A-I>", "<cmd>TroubleToggle workspace_diagnostics<cr>")
nnoremap("<leader><A-I>", "<cmd>Toggle diagnostics toggle focus=false filter.severity=vim.diagnostic.severity.ERROR<cr>")

-- Telescope
nnoremap("<leader>o", "<Cmd>Telescope find_files<CR>")
Expand Down
9 changes: 4 additions & 5 deletions lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ local plugins = {
{ "williamboman/mason.nvim", config = function() require("mason").setup() end },
{ "williamboman/mason-lspconfig.nvim" , config = function() require("mason-lspconfig").setup() end },

{ "neovim/nvim-lspconfig", config = function() require('plugins.lspconfig') end },

-- Signature help
{"ray-x/lsp_signature.nvim", config = function() require("lsp_signature").setup() end },


{ "neovim/nvim-lspconfig", config = function() require('plugins.lspconfig') end },

-- Autocomplete
{
"hrsh7th/nvim-cmp",
Expand Down Expand Up @@ -101,7 +100,7 @@ local plugins = {
end
},

{'folke/trouble.nvim'},
{'folke/trouble.nvim', opts={}, cmd='Trouble'},

-- git commands
{'tpope/vim-fugitive'},
Expand Down Expand Up @@ -152,7 +151,7 @@ local plugins = {

-- Markdown
{ 'godlygeek/tabular' },
{ 'ellisonleao/glow.nvim' },
{ 'ellisonleao/glow.nvim', config = true, cmd = "Glow" },

-- LaTex
{ 'lervag/vimtex' },
Expand Down
3 changes: 2 additions & 1 deletion lua/plugins/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ local servers = {
"clangd",
"dockerls",
-- "jedi_langauge_server",
"hls",
-- "hls",
"julials",
"jsonls",
"lua_ls",
"marksman",
Expand Down

0 comments on commit 64b9c27

Please sign in to comment.