mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
nvim: format
This commit is contained in:
parent
87edc16db2
commit
83ac6b0bf0
1 changed files with 18 additions and 18 deletions
|
|
@ -5,8 +5,8 @@ vim.g.maplocalleader = leader
|
||||||
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
|
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })
|
||||||
|
|
||||||
-- Use the Enter key as the second Leader
|
-- Use the Enter key as the second Leader
|
||||||
vim.keymap.set({'n', 'v'}, '<CR>', leader, { silent = true, remap = true })
|
vim.keymap.set({ 'n', 'v' }, '<CR>', leader, { silent = true, remap = true })
|
||||||
vim.keymap.set({'n', 'v'}, '<CR><CR>', '<CR>', { silent = true, remap = false })
|
vim.keymap.set({ 'n', 'v' }, '<CR><CR>', '<CR>', { silent = true, remap = false })
|
||||||
|
|
||||||
-- Install package manager
|
-- Install package manager
|
||||||
-- https://github.com/folke/lazy.nvim
|
-- https://github.com/folke/lazy.nvim
|
||||||
|
|
@ -211,7 +211,7 @@ vim.g.desolate_info = '#ffffff'
|
||||||
vim.cmd.colorscheme 'desolate'
|
vim.cmd.colorscheme 'desolate'
|
||||||
|
|
||||||
-- Disable line numbers for terminal buffers
|
-- Disable line numbers for terminal buffers
|
||||||
vim.api.nvim_create_autocmd({ 'TermOpen' }, { pattern = { '*' }, command = 'setlocal nonumber'})
|
vim.api.nvim_create_autocmd({ 'TermOpen' }, { pattern = { '*' }, command = 'setlocal nonumber' })
|
||||||
|
|
||||||
-- Tune diagnostic signs
|
-- Tune diagnostic signs
|
||||||
local signs = { Error = '■ ', Warn = '■ ', Hint = '■ ', Info = '■ ' }
|
local signs = { Error = '■ ', Warn = '■ ', Hint = '■ ', Info = '■ ' }
|
||||||
|
|
@ -282,7 +282,7 @@ fzf.setup({
|
||||||
previewers = {
|
previewers = {
|
||||||
builtin = {
|
builtin = {
|
||||||
syntax = true,
|
syntax = true,
|
||||||
syntax_limit_b = 1024*64, -- syntax limit (bytes), 0=nolimit
|
syntax_limit_b = 1024 * 64, -- syntax limit (bytes), 0=nolimit
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -509,7 +509,7 @@ require('lspconfig').tsserver.setup({
|
||||||
local line = result.position.line
|
local line = result.position.line
|
||||||
local character = result.position.character
|
local character = result.position.character
|
||||||
local column = vim.str_byteindex(vim.fn.getline('.'), character, true)
|
local column = vim.str_byteindex(vim.fn.getline('.'), character, true)
|
||||||
vim.api.nvim_win_set_cursor(0, {line + 1, column})
|
vim.api.nvim_win_set_cursor(0, { line + 1, column })
|
||||||
vim.lsp.buf.rename()
|
vim.lsp.buf.rename()
|
||||||
return result
|
return result
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue