mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-13 23:16:44 +00:00
1
.zshrc
1
.zshrc
@@ -208,5 +208,6 @@ function git_clean() {
|
||||
#export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig"
|
||||
|
||||
#compdef __start_kubectl k
|
||||
eval "$(op completion zsh)"; compdef _op op
|
||||
|
||||
|
||||
|
||||
@@ -179,6 +179,14 @@ map('n', '=', ':BufferPick<CR>', opts)
|
||||
-- choosewin
|
||||
map('n', '-', '<Plug>(choosewin)', { noremap = false })
|
||||
|
||||
-- sort go imports
|
||||
-- vim.api.nvim_create_autocmd('BufWritePre', {
|
||||
-- pattern = '*.go',
|
||||
-- callback = function()
|
||||
-- vim.lsp.buf.code_action({ context = { only = { 'source.organizeImports' } }, apply = true })
|
||||
-- end
|
||||
-- })
|
||||
|
||||
-- Some configurations not able to migrate
|
||||
api.nvim_exec(
|
||||
[[
|
||||
|
||||
@@ -36,15 +36,14 @@ local servers = {
|
||||
},
|
||||
},
|
||||
eslint = {},
|
||||
tsserver = {},
|
||||
jsonls = {},
|
||||
clangd = {},
|
||||
gopls = {
|
||||
settings = {
|
||||
golsp = {
|
||||
gopls = {
|
||||
gofumpt = true,
|
||||
usePlaceholders = true,
|
||||
staticcheck = true,
|
||||
useplaceholders = true,
|
||||
codelenses = {
|
||||
gc_details = true,
|
||||
},
|
||||
@@ -82,7 +81,7 @@ local settings = {
|
||||
|
||||
require('lsp-setup').setup(settings)
|
||||
|
||||
require('lsp_signature').setup({})
|
||||
-- require('lsp_signature').setup({})
|
||||
require('lsp-colors').setup({})
|
||||
|
||||
local border = { '╭', '─', '╮', '│', '╯', '─', '╰', '│' }
|
||||
|
||||
Reference in New Issue
Block a user