Compare commits
No commits in common. "04da38c6a2a29dec89fe127b88c4a64f80448de6" and "4f9f7e548ea661875a63de9d41f2b4cac2a818c4" have entirely different histories.
04da38c6a2
...
4f9f7e548e
@ -1,4 +1,3 @@
|
||||
require 'config.lazy'
|
||||
require 'config.set'
|
||||
require 'config.keymap'
|
||||
require 'config.lsp'
|
||||
|
@ -29,8 +29,6 @@ setnx('<leader>oT', '<CMD>tabnew<CR>', 'Open new tab')
|
||||
setnx('<leader>of', '<CMD>enew<CR>', 'Open new file')
|
||||
setnx('<leader>ow', '<CMD>Telescope workspaces', 'Open workspace')
|
||||
setnx('<leader>ol', '<CMD>Lazy<CR>', 'Open Lazy')
|
||||
setnx('<leader>om', '<CMD>Mason<CR>', 'Open Mason')
|
||||
setnx('<leader>oc', '<CMD>cd' .. vim.fn.stdpath('config') .. '<CR><CMD>Oil<CR>', 'Open neovim configuration')
|
||||
|
||||
-- Exit terminal mode with ESC
|
||||
set('t', '<Esc>', '<C-\\><C-n>')
|
||||
|
@ -1,48 +1,9 @@
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
|
||||
callback = function(args)
|
||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
if client:supports_method('textDocument/inlayHint') or client.server_capabilities.inlayHintProvider then
|
||||
vim.lsp.inlay_hint.enable(true, { bufnr = args.buf })
|
||||
end
|
||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||
if client.server_capabilities.inlayHintProvider then
|
||||
vim.lsp.inlya_hint.enable(args.buf, true)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
-- vim.lsp.config('rust-analyzer', {
|
||||
-- settings = {
|
||||
-- ["rust-analyzer"] = {
|
||||
-- inlayHints = {
|
||||
-- bindingModeHints = {
|
||||
-- enable = false,
|
||||
-- },
|
||||
-- chainingHints = {
|
||||
-- enable = true,
|
||||
-- },
|
||||
-- closingBraceHints = {
|
||||
-- enable = true,
|
||||
-- minLines = 25,
|
||||
-- },
|
||||
-- closureReturnTypeHints = {
|
||||
-- enable = "never",
|
||||
-- },
|
||||
-- lifetimeElisionHints = {
|
||||
-- enable = "never",
|
||||
-- useParameterNames = false,
|
||||
-- },
|
||||
-- maxLength = 25,
|
||||
-- parameterHints = {
|
||||
-- enable = true,
|
||||
-- },
|
||||
-- reborrowHints = {
|
||||
-- enable = "never",
|
||||
-- },
|
||||
-- renderColons = true,
|
||||
-- typeHints = {
|
||||
-- enable = true,
|
||||
-- hideClosureInitialization = false,
|
||||
-- hideNamedConstructor = false,
|
||||
-- },
|
||||
-- },
|
||||
-- }
|
||||
-- }
|
||||
-- })
|
||||
|
@ -18,15 +18,6 @@ return {
|
||||
},
|
||||
},
|
||||
|
||||
-- {
|
||||
-- "MysticalDevil/inlay-hints.nvim",
|
||||
-- event = "LspAttach",
|
||||
-- dependencies = { "neovim/nvim-lspconfig" },
|
||||
-- config = function()
|
||||
-- require("inlay-hints").setup()
|
||||
-- end
|
||||
-- },
|
||||
--
|
||||
{
|
||||
'saghen/blink.cmp',
|
||||
-- optional: provides snippets for the snippet source
|
||||
|
Loading…
x
Reference in New Issue
Block a user