30/10 Update

Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
Tiago Garcia 2023-10-30 15:54:36 +00:00 committed by Tiago Garcia
parent 40357fb351
commit 3593373bcf
Signed by: TiagoRG
GPG Key ID: FF0A53A30B1ADF82
6 changed files with 47 additions and 42 deletions

1
.clang-format Normal file
View File

@ -0,0 +1 @@
IndentWidth: 4

View File

@ -2,14 +2,14 @@
require("presence").setup({
-- General options
auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`)
-- neovim_image_text = "The One True Text Editor", -- Text displayed when hovered over the Neovim image
neovim_image_text = "Neovim", -- Text displayed when hovered over the Neovim image
neovim_image_text = "The One True Text Editor", -- Text displayed when hovered over the Neovim image
--neovim_image_text = "Neovim", -- Text displayed when hovered over the Neovim image
main_image = "file", -- Main image display (either "neovim" or "file")
client_id = "793271441293967371", -- Use your own Discord application client id (not recommended)
log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error")
debounce_timeout = 1, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(<filename>, true)`)
enable_line_number = false, -- Displays the current line number instead of the current project
blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches
blacklist = {"glua-atas"}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches
buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
file_assets = {}, -- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
show_time = true, -- Show the timer

View File

@ -1,9 +1,9 @@
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "bash", "lua", "vim", "vimdoc", "query", "regex",
"c", "cpp", "c_sharp", "rust", "python",
"html", "css", "php", "javascript", "typescript", "sql"
},
-- ensure_installed = { "bash", "lua", "vim", "vimdoc", "query", "regex",
-- "c", "cpp", "c_sharp", "rust", "python",
-- "html", "css", "php", "javascript", "typescript", "sql"
-- },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,

View File

@ -25,7 +25,9 @@ vim.keymap.set("i", "<C-c>", "<Esc>")
vim.keymap.set("n", "Q", "<nop>")
vim.keymap.set("n", "<C-f>", "<cmd>silent !tmux neww tmux-sessionizer<CR>")
vim.keymap.set("n", "<leader>f", vim.lsp.buf.format)
vim.keymap.set("n", "<leader>a", "ggVG")
vim.keymap.set("n", "<leader>af", "ggVG")
vim.keymap.set("n", "<leader>ab", "GVgg")
vim.keymap.set("n", "<C-k>", "<cmd>cnext<CR>zz")
vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz")

View File

@ -271,9 +271,11 @@ fi
# ALL EDITORS CRINGE!
# NEOVIM FOR THE WIN!
export EDITOR=nvim
#alias vim='gnome-terminal --maximize --title "Neovim" -- nvim'
alias vim='nvim'
#alias vim='gnome-terminal --maximize --title "Neovim" -- nvim'
# Custom made alias
alias zshrc='vim /home/tiagorg/.zsh/.zshrc'