Closed sayo9394 closed 1 week ago
I've manage to get this done by creating a new map function that takes in arguments as such;
-- Define the map function with support for arguments
local map_lsp_document = function(keys, func, desc, args)
vim.keymap.set('n', keys, function()
func(args)
end, { buffer = event.buf, desc = 'LSP: ' .. desc })
end
map_lsp_document('<leader>ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols', { fname_width = 0.5, symbol_width = 0.75 })
When displaying the document symbols, the first column, the symbols names, is truncated and one can barely see the names of the functions as can be seen in image below.![image](https://github.com/nvim-lua/kickstart.nvim/assets/321680/1859058a-bc87-43e4-962d-4f96dd6ec15e)
I was able to fix this by the following command:![image](https://github.com/nvim-lua/kickstart.nvim/assets/321680/45f8492c-f3d7-4167-a858-b2b9dd41d58a)
:lua require('telescope.builtin').lsp_document_symbols({fname_width = 0.5,symbol_width=0.75})
how can i change init.lua to make the above setting be the default behaviour.
I added the above line in the init file with no effect... I'm quite new at neovim, and still trying to get my head around the kickstart project.
cheers, Simon