stuff
This commit is contained in:
0
vim/.vim/lua/config/ls
Normal file
0
vim/.vim/lua/config/ls
Normal file
@ -7,7 +7,6 @@ local notify = require 'notify'
|
|||||||
local lsp_status = require('lsp-status')
|
local lsp_status = require('lsp-status')
|
||||||
lsp_status.register_progress()
|
lsp_status.register_progress()
|
||||||
|
|
||||||
|
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
ensure_installed = { "sumneko_lua", "rust_analyzer" }
|
ensure_installed = { "sumneko_lua", "rust_analyzer" }
|
||||||
@ -110,7 +109,7 @@ local on_attach = function(client, bufnr)
|
|||||||
vim.api.nvim_command("autocmd CursorMoved <buffer> lua vim.lsp.util.buf_clear_references()")
|
vim.api.nvim_command("autocmd CursorMoved <buffer> lua vim.lsp.util.buf_clear_references()")
|
||||||
end
|
end
|
||||||
|
|
||||||
lsp_status.on_attach(client, bufnr)
|
lsp_status.on_attach(client)
|
||||||
end
|
end
|
||||||
|
|
||||||
local opts = { noremap = true, silent = true }
|
local opts = { noremap = true, silent = true }
|
||||||
|
@ -13,7 +13,7 @@ autoload -Uz add-zsh-hook
|
|||||||
add-zsh-hook chpwd g3path::hook
|
add-zsh-hook chpwd g3path::hook
|
||||||
|
|
||||||
g3path::zle::accept-line () {
|
g3path::zle::accept-line () {
|
||||||
if [[ -n $GOOGLE3_ROOT && ! $BUFFER =~ \\s*(blaze|g4|p4|g4d|add_dep|buildozer|build_cleaner|debug_android_lint|rabbit|hb|gqui|builddoctor|unused_deps) ]]; then
|
if [[ -n $GOOGLE3_ROOT && ! $BUFFER =~ \\s*(blaze|g4|p4|g4d|add_dep|buildozer|build_cleaner|debug_android_lint|rabbit|hb|gqui|builddoctor|unused_deps|clipper) ]]; then
|
||||||
BUFFER=${BUFFER// \/\// $GOOGLE3_ROOT\/}
|
BUFFER=${BUFFER// \/\// $GOOGLE3_ROOT\/}
|
||||||
fi
|
fi
|
||||||
zle .accept-line
|
zle .accept-line
|
||||||
|
Reference in New Issue
Block a user