Compare commits

..

4 commits

Author SHA1 Message Date
0d16da2b31 nvim: fix: replace deprecated function 2024-06-18 20:34:54 +09:00
372040d1d7 nvim: update: setting up trouble.nvim v3
- just using default configs
2024-06-18 20:34:25 +09:00
4fefdd20b2 nvim: update: lazy installation for nvim 0.10 2024-06-18 19:49:36 +09:00
955fd55ff0 fish: new: add qpdfview abbr 2024-06-18 19:49:16 +09:00
3 changed files with 37 additions and 3 deletions

View file

@ -18,6 +18,7 @@ if status is-interactive
# abbr (from 3.6, --universal is removed)
abbr -a -- l less
abbr -a -- ll 'eza -la --icons --git'
abbr -a -- qpv 'qpdfview --unique'
zoxide init fish | source

View file

@ -1,7 +1,7 @@
-----------------------------------------------------------
-- Installing plugin manager 'lazy.nvim'
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
@ -131,7 +131,40 @@ require('lazy').setup({
},
{
'folke/trouble.nvim',
-- config = function
opts = {},
cmd = "Trouble",
keys = {
{
"<space>xx",
"<cmd>Trouble diagnostics toggle<cr>",
desc = "Diagnostics (Trouble)",
},
{
"<space>xX",
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
desc = "Buffer Diagnostics (Trouble)",
},
{
"<space>cs",
"<cmd>Trouble symbols toggle focus=false<cr>",
desc = "Symbols (Trouble)",
},
{
"<space>cl",
"<cmd>Trouble lsp toggle focus=false win.position=bottom<cr>",
desc = "LSP Definitions / references / ... (Trouble)",
},
{
"<space>xL",
"<cmd>Trouble loclist toggle<cr>",
desc = "Location List (Trouble)",
},
{
"<space>xQ",
"<cmd>Trouble qflist toggle<cr>",
desc = "Quickfix List (Trouble)",
},
},
},
{
'Julian/lean.nvim',

View file

@ -1,7 +1,7 @@
-- https://qiita.com/uhooi/items/99aeff822d4870a8e269
local lsp_names = function ()
local clients = {}
for _, client in ipairs(vim.lsp.get_active_clients({ bufnr = 0})) do
for _, client in ipairs(vim.lsp.get_clients({ bufnr = 0})) do
table.insert(clients, client.name)
end
return '' .. table.concat(clients, ', ')