Got tmux to act the way I want on startup let's goooo
This commit is contained in:
parent
01ee066c62
commit
32b53a7fd6
21 changed files with 171 additions and 73 deletions
dotfiles/neovim/lua/my
|
@ -8,7 +8,7 @@ function M.setup()
|
|||
require("my.options").setup()
|
||||
require('my.keymaps').setup()
|
||||
require('my.plugins').setup()
|
||||
require("telescope.extensions.unicode").setupAbbreviations()
|
||||
-- require("telescope.extensions.unicode").setupAbbreviations()
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -3,46 +3,46 @@ local helpers = require("my.helpers")
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
local opt = vim.opt -- to set options
|
||||
local opt = vim.opt -- to set options
|
||||
|
||||
-- Disable filetype.vim
|
||||
vim.g.do_filetype_lua = true
|
||||
vim.g.did_load_filetypes = false
|
||||
-- Disable filetype.vim
|
||||
vim.g.do_filetype_lua = true
|
||||
vim.g.did_load_filetypes = false
|
||||
|
||||
-- Basic options
|
||||
opt.joinspaces = false -- No double spaces with join
|
||||
opt.list = true -- Show some invisible characters
|
||||
opt.cmdheight = 0 -- Hide command line when it's not getting used
|
||||
-- Basic options
|
||||
opt.joinspaces = false -- No double spaces with join
|
||||
opt.list = true -- Show some invisible characters
|
||||
opt.cmdheight = 0 -- Hide command line when it's not getting used
|
||||
|
||||
-- Line numbers
|
||||
opt.number = true -- Show line numbers
|
||||
opt.relativenumber = true -- Relative line numbers
|
||||
-- Line numbers
|
||||
opt.number = true -- Show line numbers
|
||||
opt.relativenumber = true -- Relative line numbers
|
||||
|
||||
-- TODO: only do this for specific filestypes
|
||||
opt.expandtab = true -- Use spaces for the tab char
|
||||
-- TODO: only do this for specific filestypes
|
||||
opt.expandtab = true -- Use spaces for the tab char
|
||||
|
||||
opt.scrolloff = 4 -- Lines of context
|
||||
opt.shiftround = true -- Round indent
|
||||
opt.shiftwidth = 2 -- Size of an indent
|
||||
opt.termguicolors = true -- True color support
|
||||
opt.scrolloff = 4 -- Lines of context
|
||||
opt.shiftround = true -- Round indent
|
||||
opt.shiftwidth = 2 -- Size of an indent
|
||||
opt.termguicolors = true -- True color support
|
||||
|
||||
opt.ignorecase = true -- Ignore case
|
||||
opt.smartcase = true -- Do not ignore case with capitals
|
||||
opt.ignorecase = true -- Ignore case
|
||||
opt.smartcase = true -- Do not ignore case with capitals
|
||||
|
||||
opt.smartindent = true -- Insert indents automatically
|
||||
opt.smartindent = true -- Insert indents automatically
|
||||
|
||||
opt.splitbelow = true -- Put new windows below current
|
||||
opt.splitright = true -- Put new windows right of current
|
||||
opt.splitbelow = true -- Put new windows below current
|
||||
opt.splitright = true -- Put new windows right of current
|
||||
|
||||
opt.wrap = false -- Disable line wrap (by default)
|
||||
opt.wildmode = {'list', 'longest'} -- Command-line completion mode
|
||||
opt.completeopt = {"menu", "menuone", "noselect"}
|
||||
opt.wrap = false -- Disable line wrap (by default)
|
||||
opt.wildmode = { 'list', 'longest' } -- Command-line completion mode
|
||||
opt.completeopt = { "menu", "menuone", "noselect" }
|
||||
|
||||
-- Set leader
|
||||
helpers.global("mapleader", " ")
|
||||
-- Set leader
|
||||
helpers.global("mapleader", " ")
|
||||
|
||||
-- Import other options
|
||||
require("my.options.folding").setup()
|
||||
-- Import other options
|
||||
require("my.options.folding").setup()
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -38,7 +38,7 @@ function M.setup()
|
|||
"saadparwaiz1/cmp_luasnip", -- snippet support for cmp
|
||||
"wakatime/vim-wakatime", -- track time usage
|
||||
"vmchale/dhall-vim", -- dhall syntax highlighting
|
||||
"folke/which-key.nvim", -- shows what other keys I can press to finish a command
|
||||
-- "folke/which-key.nvim", -- shows what other keys I can press to finish a command
|
||||
"psliwka/vim-smoothie", -- smooth scrolling
|
||||
"easymotion/vim-easymotion", -- removes the need for spamming w or e
|
||||
"tpope/vim-surround", -- work with brackets, quotes, tags, etc
|
||||
|
|
|
@ -17,11 +17,11 @@ function M.setup()
|
|||
require("my.plugins.nvim-tree").setup()
|
||||
require("my.plugins.lualine").setup()
|
||||
require("my.plugins.vimux").setup()
|
||||
require("my.plugins.whichkey").setup()
|
||||
-- require("my.plugins.whichkey").setup()
|
||||
require("toggleterm").setup()
|
||||
|
||||
require("my.plugins.neogit").setup()
|
||||
require("my.plugins.noice").setup()
|
||||
-- require("my.plugins.noice").setup()
|
||||
end)
|
||||
|
||||
require("my.plugins.dashboard").setup()
|
||||
|
@ -32,7 +32,7 @@ function M.setup()
|
|||
require("my.plugins.null-ls").setup()
|
||||
require("my.plugins.vimtex").setup()
|
||||
require("my.plugins.lean").setup()
|
||||
require("my.plugins.notify").setup()
|
||||
-- require("my.plugins.notify").setup()
|
||||
end)
|
||||
|
||||
if env.firevim.active() then
|
||||
|
|
|
@ -4,8 +4,8 @@ local M = {}
|
|||
function M.setup()
|
||||
require('lean').setup {
|
||||
abbreviations = { builtin = true, cmp = true },
|
||||
lsp = { on_attach = lspconfig.on_attach },
|
||||
lsp3 = { on_attach = lspconfig.on_attach },
|
||||
lsp = { on_attach = lspconfig.on_attach, capabilities = lspconfig.capabilities },
|
||||
lsp3 = false,
|
||||
mappings = true
|
||||
}
|
||||
end
|
||||
|
|
|
@ -84,6 +84,7 @@ local servers = {
|
|||
},
|
||||
rnix = {},
|
||||
cssls = {},
|
||||
rust_analyzer = {},
|
||||
-- texlab = {
|
||||
-- build = {
|
||||
-- executable = "tectonic",
|
||||
|
@ -101,8 +102,9 @@ local servers = {
|
|||
-- agda = {}, Haven't gotten this one to work yet
|
||||
}
|
||||
|
||||
M.capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
|
||||
function M.setup()
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
|
||||
-- Setup basic language servers
|
||||
for lsp, details in pairs(servers) do
|
||||
|
@ -118,7 +120,7 @@ function M.setup()
|
|||
debounce_text_changes = 150 -- This will be the default in neovim 0.7+
|
||||
},
|
||||
cmd = details.cmd,
|
||||
capabilities = capabilities
|
||||
capabilities = M.capabilities
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,18 +1,36 @@
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
require 'nvim-treesitter.configs'.setup {
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = {
|
||||
"bash", "javascript", "typescript", "c", "cpp", "css", "dockerfile",
|
||||
"elixir", "fish", "html", "json", "latex", "python", "rust", "scss",
|
||||
"toml", "tsx", "vim", "yaml", "nix", "kotlin"
|
||||
"bash",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"c",
|
||||
"cpp",
|
||||
"css",
|
||||
"dockerfile",
|
||||
"elixir",
|
||||
"fish",
|
||||
"html",
|
||||
"json",
|
||||
"latex",
|
||||
"python",
|
||||
"rust",
|
||||
"scss",
|
||||
"toml",
|
||||
"tsx",
|
||||
"vim",
|
||||
"yaml",
|
||||
"nix",
|
||||
"kotlin"
|
||||
},
|
||||
sync_install = false,
|
||||
indent = { enable = true },
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
disable = { "kotlin", "tex", "latex" },
|
||||
disable = { "kotlin", "tex", "latex", "lean" },
|
||||
|
||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue